commit 54afc7adb55557a524f992973a5c71d6dd43341f parent c55939891de165bfdd8bd022d64f1170ecc38247 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Fri, 6 May 2022 13:40:24 +0300 Added missing zero-out of nonce-nc map array Diffstat:
| M | src/microhttpd/daemon.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -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