projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31e56b9
)
WPS: Merge SetSelectedRegistrar parsing error returns
author
Jouni Malinen
<j@w1.fi>
Mon, 31 Aug 2015 09:29:09 +0000
(12:29 +0300)
committer
Jouni Malinen
<j@w1.fi>
Mon, 31 Aug 2015 14:25:20 +0000
(17:25 +0300)
There is no need to maintain two error paths for this.
Signed-off-by: Jouni Malinen <j@w1.fi>
src/wps/wps_upnp_ap.c
patch
|
blob
|
history
diff --git
a/src/wps/wps_upnp_ap.c
b/src/wps/wps_upnp_ap.c
index
2949f14
..
cca3905
100644
(file)
--- a/
src/wps/wps_upnp_ap.c
+++ b/
src/wps/wps_upnp_ap.c
@@
-34,10
+34,8
@@
int upnp_er_set_selected_registrar(struct wps_registrar *reg,
wpa_hexdump_buf(MSG_MSGDUMP, "WPS: SetSelectedRegistrar attributes",
msg);
- if (wps_validate_upnp_set_selected_registrar(msg) < 0)
- return -1;
-
- if (wps_parse_msg(msg, &attr) < 0)
+ if (wps_validate_upnp_set_selected_registrar(msg) < 0 ||
+ wps_parse_msg(msg, &attr) < 0)
return -1;
s->reg = reg;