mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
WPS: Check wps_build_wfa_ext() return value consistently (CID 68104)
While this call cannot really fail, check the return value to be more consistent with all the other wps_build_wfa_ext() calls. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2485835ba3
commit
305000e160
@ -596,7 +596,10 @@ static struct wpabuf * build_fake_wsc_ack(void)
|
||||
wpabuf_put_be16(msg, ATTR_REGISTRAR_NONCE);
|
||||
wpabuf_put_be16(msg, WPS_NONCE_LEN);
|
||||
wpabuf_put(msg, WPS_NONCE_LEN);
|
||||
wps_build_wfa_ext(msg, 0, NULL, 0);
|
||||
if (wps_build_wfa_ext(msg, 0, NULL, 0)) {
|
||||
wpabuf_free(msg);
|
||||
return NULL;
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user