mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
mka: Clean up ieee802_1x_kay_get_cipher_suite() lookup function
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
This commit is contained in:
parent
7c547cff6b
commit
d9639d1a4e
@ -383,12 +383,10 @@ ieee802_1x_kay_get_cipher_suite(struct ieee802_1x_mka_participant *participant,
|
||||
|
||||
for (i = 0; i < CS_TABLE_SIZE; i++) {
|
||||
if (os_memcmp(cipher_suite_tbl[i].id, cs_id, CS_ID_LEN) == 0)
|
||||
break;
|
||||
return &cipher_suite_tbl[i];
|
||||
}
|
||||
if (i >= CS_TABLE_SIZE)
|
||||
return NULL;
|
||||
|
||||
return &cipher_suite_tbl[i];
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user