gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: fix log, bypass uninit hc case


From: gnunet
Subject: [taler-anastasis] branch master updated: fix log, bypass uninit hc case
Date: Mon, 06 Apr 2020 11:47:24 +0200

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

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new bd8144f  fix log, bypass uninit hc case
bd8144f is described below

commit bd8144f530c00cdfa55218b7243ecc2ec17677d4
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Apr 6 11:47:20 2020 +0200

    fix log, bypass uninit hc case
---
 src/backend/anastasis-httpd.c               | 3 +--
 src/backend/anastasis-httpd_policy_upload.c | 4 ++--
 src/lib/testing_api_cmd_policy_store.c      | 5 +++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index 18ef8e9..2de7f26 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -420,8 +420,7 @@ handle_mhd_completion_callback (void *cls,
   if (NULL == hc)
     return;
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-              "Finished handling request for `%s' with status %d\n",
-              hc->rh->url,
+              "Finished handling request with status %d\n",
               (int) toe);
   hc->cc (hc);
   *con_cls = NULL;
diff --git a/src/backend/anastasis-httpd_policy_upload.c 
b/src/backend/anastasis-httpd_policy_upload.c
index da1fd9a..883e19a 100644
--- a/src/backend/anastasis-httpd_policy_upload.c
+++ b/src/backend/anastasis-httpd_policy_upload.c
@@ -806,6 +806,7 @@ AH_handler_policy_post (struct MHD_Connection *connection,
       struct GNUNET_HashCode hc;
       enum ANASTASIS_DB_QueryStatus qs;
 
+      memset (&hc, 0, sizeof (hc));
       qs = db->lookup_account (db->cls,
                                &accountPubP);
       if (qs < 0)
@@ -831,7 +832,6 @@ AH_handler_policy_post (struct MHD_Connection *connection,
         MHD_destroy_response (resp);
         return ret;
       }
-
       if (0 != GNUNET_memcmp (&hc,
                               &puc->old_policy_upload_hash))
       {
@@ -978,4 +978,4 @@ AH_handler_policy_post (struct MHD_Connection *connection,
     MHD_destroy_response (resp);
     return ret;
   }
-}
\ No newline at end of file
+}
diff --git a/src/lib/testing_api_cmd_policy_store.c 
b/src/lib/testing_api_cmd_policy_store.c
index 9356468..fa737c2 100644
--- a/src/lib/testing_api_cmd_policy_store.c
+++ b/src/lib/testing_api_cmd_policy_store.c
@@ -143,8 +143,9 @@ policy_store_cb (void *cls,
   if (http_status != pss->http_status)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "Unexpected response code %u to command %s in %s:%u\n",
+                "Unexpected response code %u/%d to command %s in %s:%u\n",
                 http_status,
+                (int) ec,
                 pss->is->commands[pss->is->ip].label,
                 __FILE__,
                 __LINE__);
@@ -496,4 +497,4 @@ ANASTASIS_TESTING_cmd_policy_store (const char *label,
   };
 
   return cmd;
-}
\ No newline at end of file
+}

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



reply via email to

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