projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79d6c85
)
nl80211: Use couple more os_*() wrappers for allocation
author
Jouni Malinen
<jouni.malinen@atheros.com>
Mon, 21 Dec 2009 20:32:59 +0000
(22:32 +0200)
committer
Jouni Malinen
<j@w1.fi>
Mon, 21 Dec 2009 20:32:59 +0000
(22:32 +0200)
src/drivers/driver_nl80211.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_nl80211.c
b/src/drivers/driver_nl80211.c
index
4144e22
..
697fefd
100644
(file)
--- a/
src/drivers/driver_nl80211.c
+++ b/
src/drivers/driver_nl80211.c
@@
-3050,7
+3050,7
@@
static int wpa_driver_nl80211_hapd_send_eapol(
"failed: %d (%s)",
(unsigned long) len, errno, strerror(errno));
}
- free(hdr);
+
os_
free(hdr);
return res;
}
@@
-3654,8
+3654,8
@@
static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx)
else
old = NULL;
- drv->if_indices = realloc(old,
- sizeof(int) * (drv->num_if_indices + 1));
+ drv->if_indices =
os_
realloc(old,
+
sizeof(int) * (drv->num_if_indices + 1));
if (!drv->if_indices) {
if (!old)
drv->if_indices = drv->default_if_indices;