paivana

HTTP paywall reverse proxy
Log | Files | Refs | Submodules | README | LICENSE

commit b3e65b66e2267b27eee9fc41e9bf7f10f362985e
parent f5bbb953d36cd6d99e11bc8db4401a9486170102
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  4 Aug 2026 14:40:40 +0200

check calloc for NULL

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

diff --git a/src/tests/upstream_mhd.c b/src/tests/upstream_mhd.c @@ -170,6 +170,8 @@ handler (void *cls, { ctx = calloc (1, sizeof (*ctx)); + if (NULL == ctx) + return MHD_NO; *con_cls = ctx; return MHD_YES; }