From 849367afe9cc5d62470e735234ee29b99ee64139 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 25 Nov 2014 01:07:16 +0200 Subject: [PATCH] SME: Fix a sign-compare warning Signed-off-by: Jouni Malinen --- wpa_supplicant/sme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index 8c88a2393..da8e65e2c 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -169,8 +169,8 @@ static void sme_auth_handle_rrm(struct wpa_supplicant *wpa_s, return; } - if (sizeof(wpa_s->sme.assoc_req_ie) - wpa_s->sme.assoc_req_ie_len < - rrm_ie_len + 2) { + if (sizeof(wpa_s->sme.assoc_req_ie) < + wpa_s->sme.assoc_req_ie_len + rrm_ie_len + 2) { wpa_printf(MSG_INFO, "RRM: Unable to use RRM, no room for RRM IE"); return;