projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c547cf
)
mka: Clean up ieee802_1x_kay_get_cipher_suite() lookup function
author
Sabrina Dubroca
<sd@queasysnail.net>
Mon, 15 Aug 2016 09:43:41 +0000
(11:43 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 28 Aug 2016 16:49:57 +0000
(19:49 +0300)
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
src/pae/ieee802_1x_kay.c
patch
|
blob
|
history
diff --git
a/src/pae/ieee802_1x_kay.c
b/src/pae/ieee802_1x_kay.c
index
c7dd025
..
fd45c02
100644
(file)
--- a/
src/pae/ieee802_1x_kay.c
+++ b/
src/pae/ieee802_1x_kay.c
@@
-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
;
}