diff options
Diffstat (limited to 'src/testing/testing_api_cmd_config.c')
-rw-r--r-- | src/testing/testing_api_cmd_config.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/testing/testing_api_cmd_config.c b/src/testing/testing_api_cmd_config.c index 7b0dbca..069200b 100644 --- a/src/testing/testing_api_cmd_config.c +++ b/src/testing/testing_api_cmd_config.c @@ -61,29 +61,25 @@ struct ConfigState * Function called with the results of a #ANASTASIS_get_config(). * * @param cls closure - * @param http_status HTTP status of the request * @param config config from the server */ static void config_cb (void *cls, - unsigned int http_status, const struct ANASTASIS_Config *config) { struct ConfigState *ss = cls; ss->so = NULL; - if (http_status != ss->http_status) + if (config->http_status != ss->http_status) { TALER_TESTING_unexpected_status (ss->is, - http_status, + config->http_status, ss->http_status); } - if (NULL == config) + if (GNUNET_OK == config->http_status) { - TALER_TESTING_interpreter_fail (ss->is); - return; + ss->provider_salt = config->details.ok.provider_salt; } - ss->provider_salt = config->provider_salt; TALER_TESTING_interpreter_next (ss->is); } |