diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/exchange_api_withdraw2.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/exchange_api_withdraw2.c b/src/lib/exchange_api_withdraw2.c index bf9e2c091..6de7adccb 100644 --- a/src/lib/exchange_api_withdraw2.c +++ b/src/lib/exchange_api_withdraw2.c @@ -285,6 +285,12 @@ handle_reserve_withdraw_finished (void *cls, w2r.hr.hint = TALER_JSON_get_error_hint (j); break; case MHD_HTTP_CONFLICT: + w2r.hr.ec = TALER_JSON_get_error_code (j); + w2r.hr.hint = TALER_JSON_get_error_hint (j); + + if (TALER_EC_EXCHANGE_RESERVES_AGE_RESTRICTION_REQUIRED == w2r.hr.ec) + break; + /* The exchange says that the reserve has insufficient funds; check the signatures in the history... */ if (GNUNET_OK != @@ -295,11 +301,6 @@ handle_reserve_withdraw_finished (void *cls, w2r.hr.http_status = 0; w2r.hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; } - else - { - w2r.hr.ec = TALER_JSON_get_error_code (j); - w2r.hr.hint = TALER_JSON_get_error_hint (j); - } break; case MHD_HTTP_GONE: /* could happen if denomination was revoked */ |