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
This commit is contained in:
parent
43f51e2aa0
commit
8f23401281
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue