From: Jouni Malinen Date: Sun, 26 Aug 2012 17:37:11 +0000 (+0300) Subject: Interworking: Fix PLMN matching with multiple entries X-Git-Tag: hostap_2_0~327 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f234012814b6343f7c3032aad802e0f48774f9c;p=thirdparty%2Fhostap.git 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 --- 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; } }