gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: fix error handling logic in merc


From: gnunet
Subject: [taler-merchant] branch master updated: fix error handling logic in merchant_api_get_config
Date: Fri, 22 Mar 2024 14:17:02 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new d9e3d0cd fix error handling logic in merchant_api_get_config
d9e3d0cd is described below

commit d9e3d0cdfe83368000068959fc32befbd5be0c46
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Mar 22 14:16:58 2024 +0100

    fix error handling logic in merchant_api_get_config
---
 src/lib/merchant_api_get_config.c | 6 ++++--
 1 file 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);
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]