gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: fix segv


From: gnunet
Subject: [taler-anastasis] branch master updated: fix segv
Date: Mon, 06 Apr 2020 11:55:37 +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 6a9f341  fix segv
6a9f341 is described below

commit 6a9f3414126b7228c9b7819bf55ee7e4394c6cbe
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Apr 6 11:55:33 2020 +0200

    fix segv
---
 src/backend/anastasis-httpd_policy_upload.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/backend/anastasis-httpd_policy_upload.c 
b/src/backend/anastasis-httpd_policy_upload.c
index 883e19a..93cfc02 100644
--- a/src/backend/anastasis-httpd_policy_upload.c
+++ b/src/backend/anastasis-httpd_policy_upload.c
@@ -617,6 +617,7 @@ AH_handler_policy_post (struct MHD_Connection *connection,
 {
   struct PolicyUploadContext *puc;
   struct ANASTASIS_CRYPTO_AccountPublicKey accountPubP;
+
   puc = *con_cls;
   if (NULL == puc)
   {
@@ -859,12 +860,16 @@ AH_handler_policy_post (struct MHD_Connection *connection,
       }
     }
     /* ready to begin! */
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Upload starting\n");
     return MHD_YES;
   }
   /* handle upload */
   if (0 != *recovery_data_size)
   {
     /* check MHD invariant */
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Upload progressing\n");
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                 "Processing %u bytes of recovery data\n",
                 (unsigned int) *recovery_data_size);
@@ -904,6 +909,9 @@ AH_handler_policy_post (struct MHD_Connection *connection,
   }
 
   /* finished with upload, check hash */
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Upload finished\n");
+  if (NULL != puc->hash_ctx)
   {
     struct GNUNET_HashCode our_hash;
 

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



reply via email to

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