aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.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/interworking.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/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index ebc668b..ea720d2 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -330,7 +330,7 @@ static const u8 * nai_realm_parse_realm(struct nai_realm *r, const u8 *pos,
wpa_printf(MSG_DEBUG, "No room for EAP Methods");
return NULL;
}
- r->eap = os_zalloc(r->eap_count * sizeof(struct nai_realm_eap));
+ r->eap = os_calloc(r->eap_count, sizeof(struct nai_realm_eap));
if (r->eap == NULL)
return NULL;
@@ -366,7 +366,7 @@ static struct nai_realm * nai_realm_parse(struct wpabuf *anqp, u16 *count)
return NULL;
}
- realm = os_zalloc(num * sizeof(struct nai_realm));
+ realm = os_calloc(num, sizeof(struct nai_realm));
if (realm == NULL)
return NULL;