]> git.ipfire.org Git - thirdparty/hostap.git/commit
ERP: Silence static analyzer warning
authorJouni Malinen <j@w1.fi>
Mon, 1 May 2017 19:06:53 +0000 (22:06 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 1 May 2017 19:08:16 +0000 (22:08 +0300)
commit01dd2b10548f28ce3fe45a6f4b32307c7f21eafa
tree51f189c1b3823c2c036fd73c35b4cdc3127a54cc
parentd912953e37bfa110d6797b46d6ea2985d9fdfc1a
ERP: Silence static analyzer warning

The check for erp->keyname_nai within eap_erp_get_key() is apparently
too difficult for some static analyzers to notice. Add an explicit check
for os_strchr() return value being non-NULL to avoid false reports.

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