]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-FAST server: Remove unused assignment
authorJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 15:11:14 +0000 (18:11 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 15:11:14 +0000 (18:11 +0300)
Commit e8c08c9a363340c45baf8e13c758c99078bc0d8b ('EAP-FAST server: Fix
potential read-after-buffer (by one byte)') changed the while loop
design in a way that does not require the pos variable to be updated
anymore. Remove that unneeded code to clean up static analyzer warnings
about unused assignments.

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

index d5bee2203fd155a06d3a8a855f1129a36715956e..c6bf6de8f7102eedac2de3c1456d823a6f1b56bb 100644 (file)
@@ -186,7 +186,6 @@ static int eap_fast_session_ticket_cb(void *ctx, const u8 *ticket, size_t len,
 
                switch (*pos) {
                case PAC_OPAQUE_TYPE_PAD:
-                       pos = end;
                        goto done;
                case PAC_OPAQUE_TYPE_KEY:
                        if (pos[1] != EAP_FAST_PAC_KEY_LEN) {