diff options
author | Jouni Malinen <j@w1.fi> | 2012-02-16 23:25:53 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-02-16 23:25:53 +0200 |
commit | 05c15c897d11e15dbb42679f5483e83b73d5044a (patch) | |
tree | 3acc4ec01bbe9fb044d73cb4dba0e60bf44d45f6 | |
parent | 9d23cff5984e173cc4f4a2afb0d5c6603da75e7a (diff) | |
download | external_wpa_supplicant_8_ti-05c15c897d11e15dbb42679f5483e83b73d5044a.zip external_wpa_supplicant_8_ti-05c15c897d11e15dbb42679f5483e83b73d5044a.tar.gz external_wpa_supplicant_8_ti-05c15c897d11e15dbb42679f5483e83b73d5044a.tar.bz2 |
EAP-AKA peer: Clean up forgetting-id debug prints
Do not show forgetting of old id values if no value was stored.
Signed-hostap: Jouni Malinen <j@w1.fi>
-rw-r--r-- | src/eap_peer/eap_aka.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eap_peer/eap_aka.c b/src/eap_peer/eap_aka.c index 7e37e44..f30e38d 100644 --- a/src/eap_peer/eap_aka.c +++ b/src/eap_peer/eap_aka.c @@ -229,19 +229,19 @@ static int eap_aka_umts_auth(struct eap_sm *sm, struct eap_aka_data *data) static void eap_aka_clear_identities(struct eap_aka_data *data, int id) { - if (id & CLEAR_PSEUDONYM) { + if ((id & CLEAR_PSEUDONYM) && data->pseudonym) { wpa_printf(MSG_DEBUG, "EAP-AKA: forgetting old pseudonym"); os_free(data->pseudonym); data->pseudonym = NULL; data->pseudonym_len = 0; } - if (id & CLEAR_REAUTH_ID) { + if ((id & CLEAR_REAUTH_ID) && data->reauth_id) { wpa_printf(MSG_DEBUG, "EAP-AKA: forgetting old reauth_id"); os_free(data->reauth_id); data->reauth_id = NULL; data->reauth_id_len = 0; } - if (id & CLEAR_EAP_ID) { + if ((id & CLEAR_EAP_ID) && data->last_eap_identity) { wpa_printf(MSG_DEBUG, "EAP-AKA: forgetting old eap_id"); os_free(data->last_eap_identity); data->last_eap_identity = NULL; |