mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
Fix memory leak on error path in bssid_filter setting
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d8e59feab2
commit
1485ec076b
@ -124,8 +124,10 @@ static int set_bssid_filter(struct wpa_supplicant *wpa_s, char *val)
|
||||
while (pos) {
|
||||
if (*pos == '\0')
|
||||
break;
|
||||
if (hwaddr_aton(pos, addr))
|
||||
if (hwaddr_aton(pos, addr)) {
|
||||
os_free(filter);
|
||||
return -1;
|
||||
}
|
||||
n = os_realloc(filter, (count + 1) * ETH_ALEN);
|
||||
if (n == NULL) {
|
||||
os_free(filter);
|
||||
|
Loading…
x
Reference in New Issue
Block a user