]> git.ipfire.org Git - thirdparty/hostap.git/commit
eap_proxy: Check sm != NULL more consistently
authorJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 16:26:41 +0000 (19:26 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 16:26:41 +0000 (19:26 +0300)
commitaa6bf6dabc8ac1310c74076c202a5f6302f7c0cc
treeea9faae58a0f21e03ed97f32bd4767e2384a26d0
parent4f4d51e059f3685adb0e2de195c83dd4a2e0729d
eap_proxy: Check sm != NULL more consistently

While it does not look like that eapol_sm_get_key() would ever be called
with sm == NULL, the current implementation is inconsistent on whether
that is allowed or not. Check sm != NULL consistently to avoid warnings
from static analyzers.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eapol_supp/eapol_supp_sm.c