Avoid NULL dereference in ieee802_1x_get_mib_sta() printf
authorEytan Lifshitz <eytan.lifshitz@intel.com>
Mon, 10 Feb 2014 10:55:09 +0000 (12:55 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 13 Feb 2014 13:58:21 +0000 (15:58 +0200)
commit6ceb95c950f195322858f7c5dee69b6ab26f31a3
tree8e9780e5b87b6a3b2de80289c74c38b81d02ff06
parent97efe70b60755a87cfe14d9475c4e90b4acb9145
Avoid NULL dereference in ieee802_1x_get_mib_sta() printf

In function ieee802_1x_get_mib_sta(), eap_server_get_name() may return
NULL, and it could be dereferenced immidiately by os_snprintf() (if the
snprintf implementation does not handle NULL pointer).

Signed-hostap: Eytan Lifshitz <eytan.lifshitz@intel.com>
src/ap/ieee802_1x.c