gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: fix ftbfs


From: gnunet
Subject: [taler-anastasis] branch master updated: fix ftbfs
Date: Tue, 20 Oct 2020 13:57:03 +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 dded19a  fix ftbfs
dded19a is described below

commit dded19a9ae98ff11a019d87406c70b965262ac03
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Oct 20 13:57:01 2020 +0200

    fix ftbfs
---
 src/backend/anastasis-httpd_truth.c | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/backend/anastasis-httpd_truth.c 
b/src/backend/anastasis-httpd_truth.c
index 036a6d5..689306f 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -650,7 +650,13 @@ AH_handler_truth_get (struct MHD_Connection *connection,
       /* connection was suspended again, odd that this happens */
       GNUNET_break (0); /* mark oddity: why did plugin resume and then suspend 
again? */
       return MHD_YES;
-    case ANASTASIS_AUTHORIZATION_RES_REPLY_FAILED:
+    case ANASTASIS_AUTHORIZATION_RES_SUCCESS_REPLY_FAILED:
+      /* Challenge sent successfully */
+      // FIXME: mark in DB that we did it (now, for 
code_retransmission_frequency!)
+      gc->authorization->cleanup (gc->as);
+      gc->as = NULL;
+      return MHD_NO;
+    case ANASTASIS_AUTHORIZATION_RES_FAILED_REPLY_FAILED:
       gc->authorization->cleanup (gc->as);
       gc->as = NULL;
       return MHD_NO;
@@ -917,8 +923,14 @@ AH_handler_truth_get (struct MHD_Connection *connection,
     case ANASTASIS_AUTHORIZATION_RES_SUSPENDED:
       /* we have been suspended, see you later */
       return MHD_YES;
-    case ANASTASIS_AUTHORIZATION_RES_REPLY_FAILED:
+    case ANASTASIS_AUTHORIZATION_RES_SUCCESS_REPLY_FAILED:
+      /* Challenge sent successfully */
+      // FIXME: mark in DB that we did it (now, for 
code_retransmission_frequency!)
+      authorization->cleanup (gc->as);
+      return MHD_NO;
+    case ANASTASIS_AUTHORIZATION_RES_FAILED_REPLY_FAILED:
       /* failure to queue reply, kill connection */
+      authorization->cleanup (gc->as);
       return MHD_NO;
     }
     authorization->cleanup (gc->as);

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