diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-27 21:04:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-27 21:04:17 +0100 |
commit | 0920fe0f15e563e4beaa0e0c5c814a87163631ca (patch) | |
tree | 4b9965d6aa3e7da4499da766ff671e6ee7c64a68 /src/reducer/anastasis_api_redux.c | |
parent | 7d93e843f3b1cc41bb5d336d6ab785ae8360a85f (diff) | |
download | anastasis-0920fe0f15e563e4beaa0e0c5c814a87163631ca.tar.gz anastasis-0920fe0f15e563e4beaa0e0c5c814a87163631ca.tar.bz2 anastasis-0920fe0f15e563e4beaa0e0c5c814a87163631ca.zip |
fix #7036
Diffstat (limited to 'src/reducer/anastasis_api_redux.c')
-rw-r--r-- | src/reducer/anastasis_api_redux.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/reducer/anastasis_api_redux.c b/src/reducer/anastasis_api_redux.c index 11dc678..66aabe1 100644 --- a/src/reducer/anastasis_api_redux.c +++ b/src/reducer/anastasis_api_redux.c @@ -574,7 +574,12 @@ config_cb (void *cls, cr->tt = NULL; cr->http_status = http_status; if (MHD_HTTP_OK != http_status) - cr->ec = TALER_EC_ANASTASIS_REDUCER_PROVIDER_CONFIG_FAILED; + { + if (0 == http_status) + cr->ec = TALER_EC_ANASTASIS_GENERIC_PROVIDER_UNREACHABLE; + else + cr->ec = TALER_EC_ANASTASIS_REDUCER_PROVIDER_CONFIG_FAILED; + } if ( (MHD_HTTP_OK == http_status) && (NULL == acfg) ) { |