aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-11 15:11:14 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-11 15:11:14 (GMT)
commit6f577c5e4549a4f2d90d93349a1fff4d9dcbc11e (patch)
tree97e877739535c72409e3162e7f7fe5e76c495028 /src/eap_server
parente9471493ef47b5559faffaefd71d4b4d7497c481 (diff)
downloadhostap-6f577c5e4549a4f2d90d93349a1fff4d9dcbc11e.zip
hostap-6f577c5e4549a4f2d90d93349a1fff4d9dcbc11e.tar.gz
hostap-6f577c5e4549a4f2d90d93349a1fff4d9dcbc11e.tar.bz2
EAP-FAST server: Remove unused assignment
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>
Diffstat (limited to 'src/eap_server')
-rw-r--r--src/eap_server/eap_server_fast.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/eap_server/eap_server_fast.c b/src/eap_server/eap_server_fast.c
index d5bee22..c6bf6de 100644
--- a/src/eap_server/eap_server_fast.c
+++ b/src/eap_server/eap_server_fast.c
@@ -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) {