aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ap/utils.c')
-rw-r--r--src/ap/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ap/utils.c b/src/ap/utils.c
index 3e9fc08..07e289d 100644
--- a/src/ap/utils.c
+++ b/src/ap/utils.c
@@ -23,8 +23,8 @@ int hostapd_register_probereq_cb(struct hostapd_data *hapd,
{
struct hostapd_probereq_cb *n;
- n = os_realloc(hapd->probereq_cb, (hapd->num_probereq_cb + 1) *
- sizeof(struct hostapd_probereq_cb));
+ n = os_realloc_array(hapd->probereq_cb, hapd->num_probereq_cb + 1,
+ sizeof(struct hostapd_probereq_cb));
if (n == NULL)
return -1;