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: oops, first parse J


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: oops, first parse JSON
Date: Thu, 27 Jun 2019 00:47:48 +0200

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

dold pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 7cce2fd6 oops, first parse JSON
7cce2fd6 is described below

commit 7cce2fd62c010bd32f698d474f21d06fc2f32f58
Author: Florian Dold <address@hidden>
AuthorDate: Thu Jun 27 00:47:42 2019 +0200

    oops, first parse JSON
---
 src/json/json_wire.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/json/json_wire.c b/src/json/json_wire.c
index 0ce4aa8b..91e502c1 100644
--- a/src/json/json_wire.c
+++ b/src/json/json_wire.c
@@ -113,13 +113,6 @@ TALER_JSON_exchange_wire_signature_check (const json_t 
*wire_s,
     GNUNET_JSON_spec_end ()
   };
 
-  if (0 != GNUNET_memcmp (&master_pub_from_wire, master_pub))
-  {
-    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "wire signature has an unexpected master public key\n");
-    return GNUNET_SYSERR;
-  }
-
   if (GNUNET_OK !=
       GNUNET_JSON_parse (wire_s,
                          spec,
@@ -128,6 +121,14 @@ TALER_JSON_exchange_wire_signature_check (const json_t 
*wire_s,
     GNUNET_break_op (0);
     return GNUNET_SYSERR;
   }
+
+  if (0 != GNUNET_memcmp (&master_pub_from_wire, master_pub))
+  {
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "wire signature has an unexpected master public key\n");
+    return GNUNET_SYSERR;
+  }
+
   return TALER_exchange_wire_signature_check (payto_url,
                                               master_pub,
                                               &master_sig);

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



reply via email to

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