projects
/
openwrt
/
staging
/
yousong.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e6bc97
)
iwinfo: fix logic flaw in WPA OUI filtering, solves misdetecting various WPA2-PSK...
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 21 Feb 2012 18:19:26 +0000
(18:19 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 21 Feb 2012 18:19:26 +0000
(18:19 +0000)
SVN-Revision: 30672
package/iwinfo/src/iwinfo_wext_scan.c
patch
|
blob
|
history
diff --git
a/package/iwinfo/src/iwinfo_wext_scan.c
b/package/iwinfo/src/iwinfo_wext_scan.c
index 11725c938525c349bdfba039ce73a46d5c78e2c8..de025879981e00ab58efcd523433b8362b900664 100644
(file)
--- a/
package/iwinfo/src/iwinfo_wext_scan.c
+++ b/
package/iwinfo/src/iwinfo_wext_scan.c
@@
-246,7
+246,7
@@
static inline void wext_fill_wpa(unsigned char *iebuf, int buflen, struct iwinfo
/* Not all IEs that start with 0xdd are WPA.
* * So check that the OUI is valid. */
if((ielen < 8) || ((memcmp(&iebuf[offset], wpa_oui, 3) != 0)
-
&& (iebuf[offset+3] =
= 0x01)))
+
|| (iebuf[offset+3] !
= 0x01)))
return;
offset += 4;