]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Fix PLMN matching with multiple entries
authorJouni Malinen <j@w1.fi>
Sun, 26 Aug 2012 17:37:11 +0000 (20:37 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 26 Aug 2012 17:37:11 +0000 (20:37 +0300)
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

wpa_supplicant/interworking.c

index 4a4269979ae52f9390e04e74464de652b77fdefb..a649ea954178a844fa24cc7c7c2971540724ff1c 100644 (file)
@@ -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;
                        }
                }