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:
Andrei Otcheretianski 2021-01-21 17:40:32 +02:00 committed by Jouni Malinen
parent 8f557d2047
commit 0b7895750b

View file

@ -1279,7 +1279,7 @@ static int dpp_rx_gas_resp(struct dpp_connection *conn, const u8 *msg,
const u8 *pos, *end, *next, *adv_proto;
u16 status, slen, comeback_delay;
if (len < 5 + 2 + (comeback ? 1 : 0))
if (len < (size_t) (5 + 2 + (comeback ? 1 : 0)))
return -1;
wpa_printf(MSG_DEBUG,