mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
wpa_gui-qt4: Handle UNKNOWN COMMAND reply during peer window update
Avoid an infinite loop if wpa_supplicant is not built with AP support.
This commit is contained in:
parent
611ed49118
commit
acd8ba74c0
@ -145,7 +145,8 @@ void Peers::update_peers()
|
|||||||
while (*txt != '\0' && *txt != '\n')
|
while (*txt != '\0' && *txt != '\n')
|
||||||
txt++;
|
txt++;
|
||||||
*txt++ = '\0';
|
*txt++ = '\0';
|
||||||
if (strncmp(reply, "FAIL", 4) == 0)
|
if (strncmp(reply, "FAIL", 4) == 0 ||
|
||||||
|
strncmp(reply, "UNKNOWN", 7) == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
QStringList lines = info.split(QRegExp("\\n"));
|
QStringList lines = info.split(QRegExp("\\n"));
|
||||||
|
Loading…
Reference in New Issue
Block a user