aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-02-10 09:49:36 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-10 17:48:12 (GMT)
commit5f11880f6a1bc63c59d32f83d6ebf51179cc5a10 (patch)
tree0a64ebcf7ead1803826ca941140aa11ab482d943 /wpa_supplicant/sme.c
parent6dbfefb9b4079884b87a9124ab7c4cb9cf9207b6 (diff)
downloadhostap-5f11880f6a1bc63c59d32f83d6ebf51179cc5a10.zip
hostap-5f11880f6a1bc63c59d32f83d6ebf51179cc5a10.tar.gz
hostap-5f11880f6a1bc63c59d32f83d6ebf51179cc5a10.tar.bz2
SME: Remove null ie param from CTRL-EVENT-AUTH-REJECT
Clean up the event message by removing the ie=<value> parameter when the IEs are not available instead of printing out "ie=(null)". Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 744bc7b..e438dbe 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 !=