]> git.ipfire.org Git - thirdparty/hostap.git/commit
PASN: Make ssid != NULL check easier for static analyzers
authorJouni Malinen <j@w1.fi>
Sun, 23 Feb 2025 09:59:47 +0000 (11:59 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 23 Feb 2025 09:59:47 +0000 (11:59 +0200)
commit553e114e08c5522a722b8ef9657472105d266f5b
tree58ab0f9537b5f6f1488f56cb0e3edbd5f03c20a3
parentfab6e654666107326401ab6db4efddfff42e5419
PASN: Make ssid != NULL check easier for static analyzers

wpas_pasn_sae_setup_pt() would dereference ssid so it cannot be NULL in
the call. That was already taken care of by removing WPA_KEY_MGMT_*SAE*
in the ssid == NULL case. Anyway, adding an explicit check for !ssid
here gets rid of incorrect static analyzer reports.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/pasn_supplicant.c