libmicrohttpd

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

commit 4195c246bb47080eb7ce8c55d25c825da96a3a6e
parent b627fdaf25d1db7ae8e35963b5cae882881fc016
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  7 Jun 2022 18:01:13 +0200

-more minor fixes

Diffstat:
Msrc/microhttpd/test_postprocessor_large.c | 11++++++++++-
Msrc/testcurl/test_postform.c | 13++++++++++---
2 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/src/microhttpd/test_postprocessor_large.c b/src/microhttpd/test_postprocessor_large.c @@ -89,7 +89,16 @@ test_simple_large () while (i < size) { delta = 1 + MHD_random_ () % (size - i); - MHD_post_process (pp, &data[i], delta); + if (MHD_YES != + MHD_post_process (pp, + &data[i], + delta)) + { + fprintf (stderr, + "MHD_post_process() failed!\n"); + MHD_destroy_post_processor (pp); + return 1; + } i += delta; } MHD_destroy_post_processor (pp); diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c @@ -145,12 +145,19 @@ ahc_echo (void *cls, if (pp == NULL) { eok = 0; - pp = MHD_create_post_processor (connection, 1024, &post_iterator, &eok); - if (pp == NULL) + pp = MHD_create_post_processor (connection, + 1024, + &post_iterator, + &eok); + if (NULL == pp) abort (); *req_cls = pp; } - MHD_post_process (pp, upload_data, *upload_data_size); + if (MHD_YES != + MHD_post_process (pp, + upload_data, + *upload_data_size)) + abort (); if ((eok == 3) && (0 == *upload_data_size)) { response = MHD_create_response_from_buffer (strlen (url),