From 8f234012814b6343f7c3032aad802e0f48774f9c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 26 Aug 2012 20:37:11 +0300 Subject: [PATCH] Interworking: Fix PLMN matching with multiple entries The pos variable was not advanced when comparing PLMN entries in 3GPP Cellular Network information and as such, only the first entry was really used. Signed-hostap: Jouni Malinen intended-for: hostap-1 --- wpa_supplicant/interworking.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c index 4a4269979..a649ea954 100644 --- a/wpa_supplicant/interworking.c +++ b/wpa_supplicant/interworking.c @@ -551,6 +551,7 @@ static int plmn_id_match(struct wpabuf *anqp, const char *imsi, int mnc_len) break; if (os_memcmp(pos, plmn, 3) == 0) return 1; /* Found matching PLMN */ + pos += 3; } }