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:
2c48211
)
Use os_zalloc() instead of os_malloc() + os_memset()
author
Jouni Malinen
<j@w1.fi>
Sat, 27 Apr 2013 20:05:52 +0000
(23:05 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sat, 27 Apr 2013 20:05:52 +0000
(23:05 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>
hostapd/config_file.c
patch
|
blob
|
history
diff --git
a/hostapd/config_file.c
b/hostapd/config_file.c
index
cd68e3e
..
21104d3
100644
(file)
--- a/
hostapd/config_file.c
+++ b/
hostapd/config_file.c
@@
-83,7
+83,7
@@
static int hostapd_config_read_vlan_file(struct hostapd_bss_config *bss,
return -1;
}
- vlan = os_
m
alloc(sizeof(*vlan));
+ vlan = os_
z
alloc(sizeof(*vlan));
if (vlan == NULL) {
wpa_printf(MSG_ERROR, "Out of memory while reading "
"VLAN interfaces from '%s'", fname);
@@
-91,7
+91,6
@@
static int hostapd_config_read_vlan_file(struct hostapd_bss_config *bss,
return -1;
}
- os_memset(vlan, 0, sizeof(*vlan));
vlan->vlan_id = vlan_id;
os_strlcpy(vlan->ifname, pos, sizeof(vlan->ifname));
if (bss->vlan_tail)