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:
611ed49
)
wpa_gui-qt4: Handle UNKNOWN COMMAND reply during peer window update
author
Jouni Malinen
<jouni.malinen@atheros.com>
Fri, 11 Sep 2009 14:52:46 +0000
(17:52 +0300)
committer
Jouni Malinen
<j@w1.fi>
Fri, 11 Sep 2009 14:52:46 +0000
(17:52 +0300)
Avoid an infinite loop if wpa_supplicant is not built with AP support.
wpa_supplicant/wpa_gui-qt4/peers.cpp
patch
|
blob
|
history
diff --git
a/wpa_supplicant/wpa_gui-qt4/peers.cpp
b/wpa_supplicant/wpa_gui-qt4/peers.cpp
index
6cfb7a6
..
a0ff7e4
100644
(file)
--- a/
wpa_supplicant/wpa_gui-qt4/peers.cpp
+++ b/
wpa_supplicant/wpa_gui-qt4/peers.cpp
@@
-145,7
+145,8
@@
void Peers::update_peers()
while (*txt != '\0' && *txt != '\n')
txt++;
*txt++ = '\0';
- if (strncmp(reply, "FAIL", 4) == 0)
+ if (strncmp(reply, "FAIL", 4) == 0 ||
+ strncmp(reply, "UNKNOWN", 7) == 0)
break;
QStringList lines = info.split(QRegExp("\\n"));