gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] 11/12: fix wrong GNUNET_assert usage...


From: gnunet
Subject: [taler-anastasis] 11/12: fix wrong GNUNET_assert usage...
Date: Mon, 20 Apr 2020 09:46:06 +0200

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

dennis-neufeld pushed a commit to branch master
in repository anastasis.

commit a0af88a5f2cd1a9e52e7f6a46acf602090fefec5
Author: Dennis Neufeld <address@hidden>
AuthorDate: Mon Apr 20 06:28:22 2020 +0000

    fix wrong GNUNET_assert usage...
---
 src/backend/anastasis-httpd_truth.c     | 9 +++++++++
 src/lib/anastasis_api_keyshare_lookup.c | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/backend/anastasis-httpd_truth.c 
b/src/backend/anastasis-httpd_truth.c
index 8784266..25de255 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -63,9 +63,18 @@ AH_handler_truth_get (struct MHD_Connection *connection,
     uuid_str = &url[strlen ("/truth/")];
     uuid_parse (uuid_str, uuid);
 
+    GNUNET_assert (NULL != uuid_str);
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "Uuid from Url (keyshare lookup): %s\n",
+                uuid_str);
+
     challenge_response_s = MHD_lookup_connection_value (connection,
                                                         MHD_GET_ARGUMENT_KIND,
                                                         "response");
+    GNUNET_assert (NULL != challenge_response_s);
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "Challenge response from url (keyshare lookup): %s\n",
+                challenge_response_s);
   }
   {
     // check if header contains Truth-Decryption-Key
diff --git a/src/lib/anastasis_api_keyshare_lookup.c 
b/src/lib/anastasis_api_keyshare_lookup.c
index b79c5d5..86ad620 100644
--- a/src/lib/anastasis_api_keyshare_lookup.c
+++ b/src/lib/anastasis_api_keyshare_lookup.c
@@ -280,7 +280,7 @@ ANASTASIS_keyshare_lookup (struct GNUNET_CURL_Context *ctx,
                  curl_easy_setopt (eh,
                                    CURLOPT_HEADERFUNCTION,
                                    &handle_header));
-  GNUNET_assert ((CURLE_OK != curl_easy_setopt (eh,
+  GNUNET_assert ((CURLE_OK == curl_easy_setopt (eh,
                                                 CURLOPT_URL,
                                                 kslo)));
   kslo->cb = cb;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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