nl80211: Use couple more os_*() wrappers for allocation
This commit is contained in:
parent
79d6c85ffd
commit
7bf127572c
1 changed files with 3 additions and 3 deletions
|
@ -3050,7 +3050,7 @@ static int wpa_driver_nl80211_hapd_send_eapol(
|
||||||
"failed: %d (%s)",
|
"failed: %d (%s)",
|
||||||
(unsigned long) len, errno, strerror(errno));
|
(unsigned long) len, errno, strerror(errno));
|
||||||
}
|
}
|
||||||
free(hdr);
|
os_free(hdr);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -3654,8 +3654,8 @@ static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx)
|
||||||
else
|
else
|
||||||
old = NULL;
|
old = NULL;
|
||||||
|
|
||||||
drv->if_indices = realloc(old,
|
drv->if_indices = os_realloc(old,
|
||||||
sizeof(int) * (drv->num_if_indices + 1));
|
sizeof(int) * (drv->num_if_indices + 1));
|
||||||
if (!drv->if_indices) {
|
if (!drv->if_indices) {
|
||||||
if (!old)
|
if (!old)
|
||||||
drv->if_indices = drv->default_if_indices;
|
drv->if_indices = drv->default_if_indices;
|
||||||
|
|
Loading…
Reference in a new issue