EAP-FAST server: Remove unused assignment

Commit e8c08c9a36 ('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>
This commit is contained in:
Jouni Malinen 2014-10-11 18:11:14 +03:00
parent e9471493ef
commit 6f577c5e45

View file

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