From: Jouni Malinen Date: Fri, 10 Feb 2017 09:49:36 +0000 (+0200) Subject: SME: Remove null ie param from CTRL-EVENT-AUTH-REJECT X-Git-Tag: hostap_2_7~1631 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f11880f6a1bc63c59d32f83d6ebf51179cc5a10;p=thirdparty%2Fhostap.git SME: Remove null ie param from CTRL-EVENT-AUTH-REJECT Clean up the event message by removing the ie= parameter when the IEs are not available instead of printing out "ie=(null)". Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index 744bc7b66..e438dbede 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -891,10 +891,11 @@ void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data) } } wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_AUTH_REJECT MACSTR - " auth_type=%u auth_transaction=%u status_code=%u ie=%s", + " auth_type=%u auth_transaction=%u status_code=%u%s%s", MAC2STR(data->auth.peer), data->auth.auth_type, data->auth.auth_transaction, data->auth.status_code, - ie_txt); + ie_txt ? " ie=" : "", + ie_txt ? ie_txt : ""); os_free(ie_txt); if (data->auth.status_code !=