summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/anastasis-httpd_truth.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/backend/anastasis-httpd_truth.c b/src/backend/anastasis-httpd_truth.c
index 4853e15..19f8b6b 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -1117,6 +1117,10 @@ AH_handler_truth_get (
} /* end of first-time initialization (if NULL == gc) */
else
{
+ /* might have been woken up by authorization plugin,
+ so clear the flag. MDH called us, so we are
+ clearly no longer suspended */
+ gc->suspended = false;
if (NULL != gc->resp)
{
MHD_RESULT ret;
@@ -1544,11 +1548,13 @@ AH_handler_truth_get (
TALER_EC_ANASTASIS_TRUTH_AUTHORIZATION_START_FAILED,
NULL);
}
- GNUNET_assert (! gc->in_list);
- gc->in_list = true;
- GNUNET_CONTAINER_DLL_insert (gc_head,
- gc_tail,
- gc);
+ if (! gc->in_list)
+ {
+ gc->in_list = true;
+ GNUNET_CONTAINER_DLL_insert (gc_head,
+ gc_tail,
+ gc);
+ }
GNUNET_assert (! gc->suspended);
return run_authorization_process (connection,
gc);