gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: fix segv due to bad RC of .excha


From: gnunet
Subject: [taler-merchant] branch master updated: fix segv due to bad RC of .exchanges
Date: Sat, 13 Jan 2024 22:45:24 +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 f3a39377 fix segv due to bad RC of .exchanges
f3a39377 is described below

commit f3a39377229809c0f10964a36d465a268f80d6a5
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Jan 13 22:45:21 2024 +0100

    fix segv due to bad RC of .exchanges
---
 src/backend/taler-merchant-httpd_private-post-orders.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c 
b/src/backend/taler-merchant-httpd_private-post-orders.c
index 3404ea6d..515f0b1e 100644
--- a/src/backend/taler-merchant-httpd_private-post-orders.c
+++ b/src/backend/taler-merchant-httpd_private-post-orders.c
@@ -1110,8 +1110,8 @@ get_acceptable (void *cls,
                                 TMH_EXCHANGES_get_master_pub (exchange)));
   GNUNET_assert (NULL != j_exchange);
   GNUNET_assert (0 ==
-                 json_array_append_new (oc->set_exchanges.exchanges,
-                                        j_exchange));
+                 json_array_append (oc->set_exchanges.exchanges,
+                                    j_exchange));
 }
 
 
@@ -1365,6 +1365,7 @@ set_exchanges (struct OrderContext *oc)
   if (NULL == oc->set_exchanges.exchanges)
   {
     oc->set_exchanges.exchanges = json_array ();
+    GNUNET_assert (NULL != oc->set_exchanges.exchanges);
     TMH_exchange_get_trusted (&get_exchange_keys,
                               oc);
   }

-- 
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]