mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
WPS: Merge SetSelectedRegistrar parsing error returns
There is no need to maintain two error paths for this. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
31e56b953c
commit
92325e7090
@ -34,10 +34,8 @@ int upnp_er_set_selected_registrar(struct wps_registrar *reg,
|
|||||||
|
|
||||||
wpa_hexdump_buf(MSG_MSGDUMP, "WPS: SetSelectedRegistrar attributes",
|
wpa_hexdump_buf(MSG_MSGDUMP, "WPS: SetSelectedRegistrar attributes",
|
||||||
msg);
|
msg);
|
||||||
if (wps_validate_upnp_set_selected_registrar(msg) < 0)
|
if (wps_validate_upnp_set_selected_registrar(msg) < 0 ||
|
||||||
return -1;
|
wps_parse_msg(msg, &attr) < 0)
|
||||||
|
|
||||||
if (wps_parse_msg(msg, &attr) < 0)
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
s->reg = reg;
|
s->reg = reg;
|
||||||
|
Loading…
Reference in New Issue
Block a user