gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: fix check order


From: gnunet
Subject: [libmicrohttpd] branch master updated: fix check order
Date: Mon, 25 Sep 2023 21:41:19 +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 5083df30 fix check order
5083df30 is described below

commit 5083df300e85aa1c5438fc85d4386330cee4322e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Sep 25 21:41:10 2023 +0200

    fix check order
---
 src/testcurl/test_parse_cookies.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/testcurl/test_parse_cookies.c 
b/src/testcurl/test_parse_cookies.c
index 39226de2..b2f1d318 100644
--- a/src/testcurl/test_parse_cookies.c
+++ b/src/testcurl/test_parse_cookies.c
@@ -222,7 +222,7 @@ struct strct_str_len
   const size_t len;
 };
 
-#define STR_LEN_(str)   {str, MHD_STATICSTR_LEN_(str)}
+#define STR_LEN_(str)   {str, MHD_STATICSTR_LEN_ (str)}
 #define STR_NULL_       {NULL, 0}
 
 struct strct_cookie
@@ -231,7 +231,7 @@ struct strct_cookie
   struct strct_str_len value;
 };
 
-#define COOKIE_(name,value)     {STR_LEN_(name), STR_LEN_(value)}
+#define COOKIE_(name,value)     {STR_LEN_ (name), STR_LEN_ (value)}
 #define COOKIE_NULL             {STR_NULL_, STR_NULL_}
 
 struct strct_test_data
@@ -1201,6 +1201,8 @@ ahcCheck (void *cls,
   unsigned int i;
   int cookie_failed;
 
+  if (NULL == param)
+    mhdErrorExitDesc ("cls parameter is NULL");
   if (use_discp_p2)
     expected_num_cookies = param->check->num_cookies_strict_p2;
   else if (use_discp_p1)
@@ -1214,8 +1216,6 @@ ahcCheck (void *cls,
   else
     externalErrorExit ();
 
-  if (NULL == param)
-    mhdErrorExitDesc ("cls parameter is NULL");
 
   if (oneone)
   {

-- 
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]