projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1566ec4
)
Make wpa_compare_rsn_ie() handle missing IEs
author
Jouni Malinen
<j@w1.fi>
Sat, 10 Apr 2010 13:47:29 +0000
(16:47 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sat, 10 Apr 2010 13:47:29 +0000
(16:47 +0300)
src/common/wpa_common.c
patch
|
blob
|
history
diff --git
a/src/common/wpa_common.c
b/src/common/wpa_common.c
index
84cbe9a
..
b295f31
100644
(file)
--- a/
src/common/wpa_common.c
+++ b/
src/common/wpa_common.c
@@
-675,6
+675,9
@@
int wpa_compare_rsn_ie(int ft_initial_assoc,
const u8 *ie1, size_t ie1len,
const u8 *ie2, size_t ie2len)
{
+ if (ie1 == NULL || ie2 == NULL)
+ return -1;
+
if (ie1len == ie2len && os_memcmp(ie1, ie2, ie1len) == 0)
return 0; /* identical IEs */