libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 440a56cbdf25cb4c7bb463095a94307d0f67bdd1
parent d3bdd93e41c4940ab33b8be0a3af45227b38ec18
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Sat,  6 Sep 2025 13:41:57 +0200

response_auth_digest: fixed wrong allocation

Reported by OSTIF
https://bugs.gnunet.org/view.php?id=10253

Diffstat:
Msrc/mhd2/response_auth_digest.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mhd2/response_auth_digest.c b/src/mhd2/response_auth_digest.c @@ -229,7 +229,7 @@ response_add_auth_digest_challenge_alg ( /* ** Allocate ** */ new_hdr = (struct mhd_RespAuthDigestHeader *) - malloc (sizeof(struct mhd_RespAuthDigestHeader *) + malloc (sizeof(struct mhd_RespAuthDigestHeader) + hdr_maxlen + 1); if (NULL == new_hdr) return MHD_SC_RESPONSE_HEADER_MEM_ALLOC_FAILED;