mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
P2P: add a missing 'return' after building IE from an empty string
When building IE from an empty string and CONFIG_WPS_STRICT is not defined, redundant 2 bytes are being added to the string. We have to return right after building the "dummy" string. Signed-off-by: Eliad Peller <eliad@wizery.com>
This commit is contained in:
parent
e4bf4db907
commit
72863ea7c6
@ -346,6 +346,7 @@ static void p2p_add_wps_string(struct wpabuf *buf, enum wps_attribute attr,
|
||||
*/
|
||||
wpabuf_put_be16(buf, 1);
|
||||
wpabuf_put_u8(buf, ' ');
|
||||
return;
|
||||
}
|
||||
#endif /* CONFIG_WPS_STRICT */
|
||||
wpabuf_put_be16(buf, len);
|
||||
|
Loading…
Reference in New Issue
Block a user