Convert os_realloc() for an array to use os_realloc_array()
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b0cda9bd46
commit
067ffa2696
21 changed files with 88 additions and 86 deletions
|
@ -281,8 +281,8 @@ int radius_client_register(struct radius_client_data *radius,
|
|||
num = &radius->num_auth_handlers;
|
||||
}
|
||||
|
||||
newh = os_realloc(*handlers,
|
||||
(*num + 1) * sizeof(struct radius_rx_handler));
|
||||
newh = os_realloc_array(*handlers, *num + 1,
|
||||
sizeof(struct radius_rx_handler));
|
||||
if (newh == NULL)
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue