libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit d3c3ea0b8ad355a105b27a94e98229c23172756b
parent 679fb11892553bc5a32128ab684d0db1d110f915
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Wed,  8 Jul 2026 11:33:51 +0200

fix OOM handling

Diffstat:
Msrc/microhttpd/digestauth.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c @@ -1291,6 +1291,8 @@ MHD_digest_auth_get_request_info3 (struct MHD_Connection *connection) unif_buf_size += params->realm.value.len + 1; /* Add one for zero-termination */ info = (struct MHD_DigestAuthInfo *) MHD_calloc_ (1, (sizeof(struct MHD_DigestAuthInfo)) + unif_buf_size); + if (NULL == info) + return NULL; unif_buf_ptr = (uint8_t *) (info + 1); unif_buf_used = 0;