Convert os_zalloc() for an array to use os_calloc()
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
64a2f2ece1
commit
f9884c096a
16 changed files with 49 additions and 50 deletions
|
@ -1205,7 +1205,7 @@ static void ieee802_1x_store_radius_class(struct hostapd_data *hapd,
|
|||
if (count <= 0)
|
||||
return;
|
||||
|
||||
nclass = os_zalloc(count * sizeof(struct radius_attr_data));
|
||||
nclass = os_calloc(count, sizeof(struct radius_attr_data));
|
||||
if (nclass == NULL)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue