libmicrohttpd

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

commit b5de085bf1d99572ad25008752483c3253d42eb5
parent 1e314fd50a9ba0357d3a722ebcc7c125a37c06b1
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 12 Sep 2021 20:01:54 +0300

test_postprocessor: fixed strlen() with NULL

Diffstat:
Msrc/microhttpd/test_postprocessor.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/test_postprocessor.c b/src/microhttpd/test_postprocessor.c @@ -185,7 +185,8 @@ value_checker (void *cls, } if ( ( (NULL == expct->data) && (0 == off + size) ) || - (off + size == strlen (expct->data)) ) + ( (NULL != expct->data) && + (off + size == strlen (expct->data)) ) ) *idxp += 1; return MHD_YES; }