DPP: Silence compiler warning about signed/unsigned comparison
Old gcc versions complain about signed/unsigned comparison in dpp_rx_gas_resp(). Hide it. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
parent
8f557d2047
commit
0b7895750b
1 changed files with 1 additions and 1 deletions
|
@ -1279,7 +1279,7 @@ static int dpp_rx_gas_resp(struct dpp_connection *conn, const u8 *msg,
|
||||||
const u8 *pos, *end, *next, *adv_proto;
|
const u8 *pos, *end, *next, *adv_proto;
|
||||||
u16 status, slen, comeback_delay;
|
u16 status, slen, comeback_delay;
|
||||||
|
|
||||||
if (len < 5 + 2 + (comeback ? 1 : 0))
|
if (len < (size_t) (5 + 2 + (comeback ? 1 : 0)))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG,
|
wpa_printf(MSG_DEBUG,
|
||||||
|
|
Loading…
Add table
Reference in a new issue