Added missing zero-out of nonce-nc map array

This commit is contained in:
Evgeny Grin (Karlson2k)
2022-05-06 13:40:24 +03:00
parent c55939891d
commit 54afc7adb5
+2 -1
View File
@@ -6845,7 +6845,8 @@ MHD_start_daemon_va (unsigned int flags,
free (daemon);
return NULL;
}
daemon->nnc = malloc (daemon->nonce_nc_size * sizeof (struct MHD_NonceNc));
daemon->nnc = MHD_calloc_ (daemon->nonce_nc_size,
sizeof (struct MHD_NonceNc));
if (NULL == daemon->nnc)
{
#ifdef HAVE_MESSAGES