diff options
Diffstat (limited to 'src/backend/anastasis-httpd_truth.c')
-rw-r--r-- | src/backend/anastasis-httpd_truth.c | 16 |
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 ( | |||
1117 | } /* end of first-time initialization (if NULL == gc) */ | 1117 | } /* end of first-time initialization (if NULL == gc) */ |
1118 | else | 1118 | else |
1119 | { | 1119 | { |
1120 | /* might have been woken up by authorization plugin, | ||
1121 | so clear the flag. MDH called us, so we are | ||
1122 | clearly no longer suspended */ | ||
1123 | gc->suspended = false; | ||
1120 | if (NULL != gc->resp) | 1124 | if (NULL != gc->resp) |
1121 | { | 1125 | { |
1122 | MHD_RESULT ret; | 1126 | MHD_RESULT ret; |
@@ -1544,11 +1548,13 @@ AH_handler_truth_get ( | |||
1544 | TALER_EC_ANASTASIS_TRUTH_AUTHORIZATION_START_FAILED, | 1548 | TALER_EC_ANASTASIS_TRUTH_AUTHORIZATION_START_FAILED, |
1545 | NULL); | 1549 | NULL); |
1546 | } | 1550 | } |
1547 | GNUNET_assert (! gc->in_list); | 1551 | if (! gc->in_list) |
1548 | gc->in_list = true; | 1552 | { |
1549 | GNUNET_CONTAINER_DLL_insert (gc_head, | 1553 | gc->in_list = true; |
1550 | gc_tail, | 1554 | GNUNET_CONTAINER_DLL_insert (gc_head, |
1551 | gc); | 1555 | gc_tail, |
1556 | gc); | ||
1557 | } | ||
1552 | GNUNET_assert (! gc->suspended); | 1558 | GNUNET_assert (! gc->suspended); |
1553 | return run_authorization_process (connection, | 1559 | return run_authorization_process (connection, |
1554 | gc); | 1560 | gc); |