]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SME: Remove null ie param from CTRL-EVENT-AUTH-REJECT
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 10 Feb 2017 09:49:36 +0000 (11:49 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 10 Feb 2017 17:48:12 +0000 (19:48 +0200)
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>
wpa_supplicant/sme.c

index 744bc7b663d4fe91e27581395c30adb59f80b666..e438dbedeada5884d0c93c9882371e6bcc4151d5 100644 (file)
@@ -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 !=