From: Jouni Malinen Date: Tue, 27 Nov 2018 18:49:53 +0000 (+0200) Subject: OWE: Fix a compiler warning in non-testing build X-Git-Tag: hostap_2_7~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04924b28b5710e2b833d1bf1fb58d4f9f8f39bb0;p=thirdparty%2Fhostap.git 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: a22e235fd0df ("OWE: Add testing RSNE for OWE assoc response with driver SME/MLME") Signed-off-by: Jouni Malinen --- diff --git a/src/ap/wpa_auth_ie.c b/src/ap/wpa_auth_ie.c index 253fe6e10..468abf85f 100644 --- a/src/ap/wpa_auth_ie.c +++ b/src/ap/wpa_auth_ie.c @@ -1082,7 +1082,7 @@ u8 * wpa_auth_write_assoc_resp_owe(struct wpa_state_machine *sm, } #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); if (res < 0) return pos;