projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Handle NULL return from os_zalloc() in sta_track_add()
[mech_eap.git]
/
src
/
ap
/
beacon.c
diff --git
a/src/ap/beacon.c
b/src/ap/beacon.c
index
202abe6
..
0a006f9
100644
(file)
--- a/
src/ap/beacon.c
+++ b/
src/ap/beacon.c
@@
-632,6
+632,8
@@
void sta_track_add(struct hostapd_iface *iface, const u8 *addr)
/* Add a new entry */
info = os_zalloc(sizeof(*info));
+ if (info == NULL)
+ return;
os_memcpy(info->addr, addr, ETH_ALEN);
os_get_reltime(&info->last_seen);