mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-19 03:14:05 -05:00
OWE: Fix a compiler warning in non-testing build
The new conf variable was used only within the CONFIG_TESTING_OPTIONS
block and as such, added a warning about unused variable into
non-testing builds. Fix that by using that variable outside the
conditional block as well.
Fixes: a22e235fd0
("OWE: Add testing RSNE for OWE assoc response with driver SME/MLME")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
4e72b1de1d
commit
04924b28b5
@ -1082,7 +1082,7 @@ u8 * wpa_auth_write_assoc_resp_owe(struct wpa_state_machine *sm,
|
|||||||
}
|
}
|
||||||
#endif /* CONFIG_TESTING_OPTIONS */
|
#endif /* CONFIG_TESTING_OPTIONS */
|
||||||
|
|
||||||
res = wpa_write_rsn_ie(&sm->wpa_auth->conf, pos, max_len,
|
res = wpa_write_rsn_ie(conf, pos, max_len,
|
||||||
sm->pmksa ? sm->pmksa->pmkid : NULL);
|
sm->pmksa ? sm->pmksa->pmkid : NULL);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
return pos;
|
return pos;
|
||||||
|
Loading…
Reference in New Issue
Block a user