Check eap_get_name() return against NULL to silence static analyzer
authorJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 12:42:07 +0000 (15:42 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 12:42:07 +0000 (15:42 +0300)
commitf2ca0e9770493500a732953ad772eb0c5facdd06
tree457abec444846106d982c30411306050ce83bab3
parentbc32bb70d7aa53f61f261dab88fdc417b6567d9a
Check eap_get_name() return against NULL to silence static analyzer

This cannot really be NULL in practice since cred->eap_method would
point to a valid EAP method. Anyway, to avoid false positive from
analyzers, check the pointer explicitly before printing it.

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