WPS: Send WSC_NACK if message without Message Type is received
This commit is contained in:
parent
4a64a51b63
commit
ccb7e5ee59
2 changed files with 4 additions and 2 deletions
|
@ -1099,7 +1099,8 @@ static enum wps_process_res wps_process_wsc_msg(struct wps_data *wps,
|
||||||
|
|
||||||
if (attr.msg_type == NULL) {
|
if (attr.msg_type == NULL) {
|
||||||
wpa_printf(MSG_DEBUG, "WPS: No Message Type attribute");
|
wpa_printf(MSG_DEBUG, "WPS: No Message Type attribute");
|
||||||
return WPS_FAILURE;
|
wps->state = SEND_WSC_NACK;
|
||||||
|
return WPS_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (*attr.msg_type) {
|
switch (*attr.msg_type) {
|
||||||
|
|
|
@ -2558,7 +2558,8 @@ static enum wps_process_res wps_process_wsc_msg(struct wps_data *wps,
|
||||||
|
|
||||||
if (attr.msg_type == NULL) {
|
if (attr.msg_type == NULL) {
|
||||||
wpa_printf(MSG_DEBUG, "WPS: No Message Type attribute");
|
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 &&
|
if (*attr.msg_type != WPS_M1 &&
|
||||||
|
|
Loading…
Reference in a new issue