aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-26 17:37:11 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-26 17:37:11 (GMT)
commit8f234012814b6343f7c3032aad802e0f48774f9c (patch)
treef8058492cccc7ca8d93d8d75f091a3c06b49128f /wpa_supplicant/interworking.c
parent43f51e2aa0d138b96e26582586d7bd4bf058411a (diff)
downloadhostap-8f234012814b6343f7c3032aad802e0f48774f9c.zip
hostap-8f234012814b6343f7c3032aad802e0f48774f9c.tar.gz
hostap-8f234012814b6343f7c3032aad802e0f48774f9c.tar.bz2
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 <j@w1.fi> intended-for: hostap-1
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 4a42699..a649ea9 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;
}
}