gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: check rval


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: check rval
Date: Mon, 03 Jun 2019 23:36:49 +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 6a1649f6 check rval
6a1649f6 is described below

commit 6a1649f62ff9d8f49694fd34239fb1d62e6dc654
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Jun 3 11:34:38 2019 +0200

    check rval
---
 src/lib/testing_api_cmd_status.c | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/src/lib/testing_api_cmd_status.c b/src/lib/testing_api_cmd_status.c
index 8e9290f6..40c8c550 100644
--- a/src/lib/testing_api_cmd_status.c
+++ b/src/lib/testing_api_cmd_status.c
@@ -183,18 +183,22 @@ status_run (void *cls,
          &transfer_subject))
     {
       GNUNET_break (0);
-      TALER_LOG_ERROR
-        ("The reserve has neither a priv nor a subject line..\n");
+      TALER_LOG_ERROR ("The reserve has neither a priv nor a subject line.\n");
       TALER_TESTING_interpreter_fail (is);
       return;
-    
     }
 
-    GNUNET_STRINGS_string_to_data
-      (transfer_subject,
-       strlen (transfer_subject),
-       &reserve_pub.eddsa_pub,
-       sizeof (struct TALER_ReservePublicKeyP));
+    if (GNUNET_OK !=
+        GNUNET_STRINGS_string_to_data (transfer_subject,
+                                       strlen (transfer_subject),
+                                       &reserve_pub.eddsa_pub,
+                                       sizeof (struct 
TALER_ReservePublicKeyP)))
+    {
+      GNUNET_break (0);
+      TALER_LOG_ERROR ("Transfer subject is not a public key.\n");
+      TALER_TESTING_interpreter_fail (is);
+      return;
+    }
   }
 
   ss->rsh = TALER_EXCHANGE_reserve_status (is->exchange,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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