[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: -more minor fixes
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: -more minor fixes |
Date: |
Tue, 07 Jun 2022 18:01:16 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 4195c246 -more minor fixes
4195c246 is described below
commit 4195c246bb47080eb7ce8c55d25c825da96a3a6e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Jun 7 18:01:13 2022 +0200
-more minor fixes
---
src/microhttpd/test_postprocessor_large.c | 11 ++++++++++-
src/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
index 7fcc5d5a..0a821f09 100644
--- 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
index 87febcbc..a2dfd41d 100644
--- 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),
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: -more minor fixes,
gnunet <=