WPS: Send WSC_NACK if message without Message Type is received

This commit is contained in:
Jouni Malinen 2010-11-04 18:17:00 +02:00 committed by Jouni Malinen
parent 4a64a51b63
commit ccb7e5ee59
2 changed files with 4 additions and 2 deletions

View File

@ -1099,7 +1099,8 @@ static enum wps_process_res wps_process_wsc_msg(struct wps_data *wps,
if (attr.msg_type == NULL) {
wpa_printf(MSG_DEBUG, "WPS: No Message Type attribute");
return WPS_FAILURE;
wps->state = SEND_WSC_NACK;
return WPS_CONTINUE;
}
switch (*attr.msg_type) {

View File

@ -2558,7 +2558,8 @@ static enum wps_process_res wps_process_wsc_msg(struct wps_data *wps,
if (attr.msg_type == NULL) {
wpa_printf(MSG_DEBUG, "WPS: No Message Type attribute");
return WPS_FAILURE;
wps->state = SEND_WSC_NACK;
return WPS_CONTINUE;
}
if (*attr.msg_type != WPS_M1 &&