From: Andrei Otcheretianski Date: Thu, 21 Jan 2021 15:40:32 +0000 (+0200) Subject: DPP: Silence compiler warning about signed/unsigned comparison X-Git-Tag: hostap_2_10~644 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b7895750bf839eb0f00e28d3e5d5d19cdf0c09a;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/common/dpp_tcp.c b/src/common/dpp_tcp.c index 7e330d689..609c243a6 100644 --- a/src/common/dpp_tcp.c +++ b/src/common/dpp_tcp.c @@ -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,