gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: avoid failure mode


From: gnunet
Subject: [taler-exchange] branch master updated: avoid failure mode
Date: Wed, 16 Jun 2021 15:39:08 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 3e3fb304 avoid failure mode
3e3fb304 is described below

commit 3e3fb304f43d976c3e946f8b8a25f9b680035467
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jun 16 15:39:06 2021 +0200

    avoid failure mode
---
 src/pq/pq_result_helper.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c
index fdf3dc34..c1c8fe5e 100644
--- a/src/pq/pq_result_helper.c
+++ b/src/pq/pq_result_helper.c
@@ -228,8 +228,13 @@ extract_amount (void *cls,
                                    val_name,
                                    frac_name,
                                    &amount_nbo);
-  TALER_amount_ntoh (r_amount,
-                     &amount_nbo);
+  if (GNUNET_OK == ret)
+    TALER_amount_ntoh (r_amount,
+                       &amount_nbo);
+  else
+    memset (r_amount,
+            0,
+            sizeof (struct TALER_Amount));
   GNUNET_free (val_name);
   GNUNET_free (frac_name);
   return ret;

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