gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 01/02: test_{tricky,toolarge}: minor improvement


From: gnunet
Subject: [libmicrohttpd] 01/02: test_{tricky,toolarge}: minor improvement
Date: Tue, 09 Nov 2021 18:57:34 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 0ae9a4c10b2534f58b0e2aa0841fc837dfe5aa2a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Nov 6 19:48:02 2021 +0300

    test_{tricky,toolarge}: minor improvement
---
 src/testcurl/test_toolarge.c | 6 +++---
 src/testcurl/test_tricky.c   | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/testcurl/test_toolarge.c b/src/testcurl/test_toolarge.c
index 2cb1f48e..3078689b 100644
--- a/src/testcurl/test_toolarge.c
+++ b/src/testcurl/test_toolarge.c
@@ -455,6 +455,9 @@ ahcCheck (void *cls,
   struct ahc_cls_type *const param = (struct ahc_cls_type *) cls;
   size_t i;
 
+  if (NULL == param)
+    mhdErrorExitDesc ("cls parameter is NULL");
+
   if (0 != strcmp (version, MHD_HTTP_VERSION_1_1))
     mhdErrorExitDesc ("Unexpected HTTP version");
 
@@ -470,9 +473,6 @@ ahcCheck (void *cls,
   if (0 != *upload_data_size)
     mhdErrorExitDesc ("'*upload_data_size' value is not zero");
 
-  if (NULL == param)
-    mhdErrorExitDesc ("cls parameter is NULL");
-
   if (0 != strcmp (param->rq_method, method))
     mhdErrorExitDesc ("Unexpected request method");
 
diff --git a/src/testcurl/test_tricky.c b/src/testcurl/test_tricky.c
index c0233bda..8538fb28 100644
--- a/src/testcurl/test_tricky.c
+++ b/src/testcurl/test_tricky.c
@@ -383,6 +383,9 @@ ahcCheck (void *cls,
   enum MHD_Result ret;
   struct ahc_cls_type *const param = (struct ahc_cls_type *) cls;
 
+  if (NULL == param)
+    mhdErrorExitDesc ("cls parameter is NULL");
+
   if (0 != strcmp (version, MHD_HTTP_VERSION_1_1))
     mhdErrorExitDesc ("Unexpected HTTP version");
 
@@ -398,9 +401,6 @@ ahcCheck (void *cls,
   if (0 != *upload_data_size)
     mhdErrorExitDesc ("'*upload_data_size' value is not zero");
 
-  if (NULL == param)
-    mhdErrorExitDesc ("cls parameter is NULL");
-
   if (0 != strcmp (param->rq_method, method))
     mhdErrorExitDesc ("Unexpected request method");
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]