]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-AKA: Remove unnecessary dead increment
authorJouni Malinen <j@w1.fi>
Sun, 29 Jun 2014 22:47:44 +0000 (01:47 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jul 2014 09:38:48 +0000 (12:38 +0300)
The pos pointer is not used after this now nor in future plans, so no
need to increment the value. This remove a static analyzer warning about
dead increment.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/eap_aka.c

index 28164fbb5ea8052636ca87b80dc48b228f197e1f..41361c0194056a47248a6525799ed848b15b9850 100644 (file)
@@ -151,7 +151,7 @@ static int eap_aka_ext_sim_req(struct eap_sm *sm, struct eap_aka_data *data)
        pos += os_snprintf(pos, end - pos, ":");
        pos += wpa_snprintf_hex(pos, end - pos, data->rand, EAP_AKA_RAND_LEN);
        pos += os_snprintf(pos, end - pos, ":");
-       pos += wpa_snprintf_hex(pos, end - pos, data->autn, EAP_AKA_AUTN_LEN);
+       wpa_snprintf_hex(pos, end - pos, data->autn, EAP_AKA_AUTN_LEN);
 
        eap_sm_request_sim(sm, req);
        return 1;