diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-03-22 14:16:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-03-22 14:16:58 +0100 |
commit | d9e3d0cdfe83368000068959fc32befbd5be0c46 (patch) | |
tree | c18b58187840a5f0dfc46787fc57cfaf373b11d7 /src/lib | |
parent | 2c9b6f560613623923304c9cdbc9ea6463f594f3 (diff) |
fix error handling logic in merchant_api_get_config
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/merchant_api_get_config.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/merchant_api_get_config.c b/src/lib/merchant_api_get_config.c index 1aee6ed6..ddbc20a3 100644 --- a/src/lib/merchant_api_get_config.c +++ b/src/lib/merchant_api_get_config.c @@ -243,6 +243,8 @@ handle_config_finished (void *cls, cr.hr.http_status = 0; cr.hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE; GNUNET_free (eci); + TALER_CONFIG_free_currencies (off - 1, + cspecs); break; } } @@ -263,10 +265,10 @@ handle_config_finished (void *cls, "Unexpected response code %u/%d\n", (unsigned int) response_code, (int) cr.hr.ec); - vgh->cb (vgh->cb_cls, - &cr); break; } + vgh->cb (vgh->cb_cls, + &cr); TALER_MERCHANT_config_get_cancel (vgh); } |