]> git.ipfire.org Git - thirdparty/hostap.git/commit
OWE: Clean up pointer check in a testing code path
authorAshok Ponnaiah <aponnaia@codeaurora.org>
Mon, 5 Mar 2018 05:29:18 +0000 (10:59 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 19 Mar 2018 17:08:34 +0000 (19:08 +0200)
commitf5701cc66e5a5f236735952029b0e61bb78a0977
treea9d5cc02b2d61cac2b6d3bfcb637e62cdee73f72
parentebe61e564c19fb6319bd7f31aa6f0593858090d6
OWE: Clean up pointer check in a testing code path

Check wpa_auth_write_assoc_resp_owe() return value to keep static
analyzers happier. The code path where this could happen is not really
reachable due to the separate hapd->conf->own_ie_override check and
wpa_auth_write_assoc_resp_owe() returning NULL only in an error case in
the override path. Furthermore, clean up the pointer return value to use
a proper pointer (NULL vs. 0).

Signed-off-by: Ashok Ponnaiah <aponnaia@codeaurora.org>
src/ap/ieee802_11.c
src/ap/wpa_auth_ie.c