aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-09-11 14:19:47 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-09-11 14:19:47 +0300
commitce7e1e50d3fcc4930c0aff95d5afe9c200ab80d9 (patch)
treefe1f84489f7c6b294f34ed452bb038093cea96dd
parente7b2a95ce206ff1e64e8acd3cafd508b45dc0c15 (diff)
downloadlibmicrohttpd-ce7e1e50d3fcc4930c0aff95d5afe9c200ab80d9.tar.gz
libmicrohttpd-ce7e1e50d3fcc4930c0aff95d5afe9c200ab80d9.zip
test_postprocessor: catch impossible value
-rw-r--r--src/microhttpd/test_postprocessor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/test_postprocessor.c b/src/microhttpd/test_postprocessor.c
index e7130332..17d09c91 100644
--- a/src/microhttpd/test_postprocessor.c
+++ b/src/microhttpd/test_postprocessor.c
@@ -131,6 +131,8 @@ value_checker (void *cls,
131 data ? data : "(NULL)", 131 data ? data : "(NULL)",
132 (int) size); 132 (int) size);
133#endif 133#endif
134 if (*idxp == (unsigned int) -1)
135 exit (99);
134 if ( (0 != off) && (0 == size) ) 136 if ( (0 != off) && (0 == size) )
135 { 137 {
136 if (NULL == expct->data) 138 if (NULL == expct->data)