aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-13 17:44:21 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-13 17:44:21 (GMT)
commitf9884c096ac3560a760b0893813ae2c3692b2b16 (patch)
treee847ca23733e483491ab88d530073728d078204c /wpa_supplicant/ap.c
parent64a2f2ece1e6dbb6900e1a8f4168dbf5c2f5f351 (diff)
downloadhostap-f9884c096ac3560a760b0893813ae2c3692b2b16.zip
hostap-f9884c096ac3560a760b0893813ae2c3692b2b16.tar.gz
hostap-f9884c096ac3560a760b0893813ae2c3692b2b16.tar.bz2
Convert os_zalloc() for an array to use os_calloc()
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 6179482..948e2e4 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -514,7 +514,7 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
#endif /* CONFIG_P2P */
hapd_iface->num_bss = conf->num_bss;
- hapd_iface->bss = os_zalloc(conf->num_bss *
+ hapd_iface->bss = os_calloc(conf->num_bss,
sizeof(struct hostapd_data *));
if (hapd_iface->bss == NULL) {
wpa_supplicant_ap_deinit(wpa_s);