mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
wpa_gui: Silence a compiler warning
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
eadfeb0e93
commit
68f9f480ef
@ -476,7 +476,9 @@ void Peers::add_stations()
|
|||||||
add_station(info);
|
add_station(info);
|
||||||
|
|
||||||
reply_len = sizeof(reply) - 1;
|
reply_len = sizeof(reply) - 1;
|
||||||
snprintf(cmd, sizeof(cmd), "STA-NEXT %s", reply);
|
res = snprintf(cmd, sizeof(cmd), "STA-NEXT %s", reply);
|
||||||
|
if (res < 0 || (size_t) res >= sizeof(cmd))
|
||||||
|
break;
|
||||||
res = wpagui->ctrlRequest(cmd, reply, &reply_len);
|
res = wpagui->ctrlRequest(cmd, reply, &reply_len);
|
||||||
} while (res >= 0);
|
} while (res >= 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user