gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] 16/23: clarify input


From: gnunet
Subject: [taler-taler-mdb] 16/23: clarify input
Date: Wed, 04 Dec 2019 14:16:02 +0100

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

grothoff pushed a commit to branch master
in repository taler-mdb.

commit b17c2d601cbcb877842bde0d8f7ae0c9cdacddc4
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Dec 4 13:12:38 2019 +0100

    clarify input
---
 src/main.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/main.c b/src/main.c
index 691e508..d6d2ced 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1318,6 +1318,10 @@ handle_command (const char *hex,
     return;
   if (0 != (hex_len % 2))
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "Received unexpected input `%.*s'\n",
+                (int) hex_len,
+                hex);
     GNUNET_break_op (0);
     return;
   }
@@ -1325,6 +1329,10 @@ handle_command (const char *hex,
                    "%2X",
                    &cmd))
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "Received non-HEX input `%.*s'\n",
+                (int) hex_len,
+                hex);
     GNUNET_break_op (0);
     return;
   }
@@ -1343,6 +1351,10 @@ handle_command (const char *hex,
                        "%2X",
                        &subcmd))
       {
+        GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                    "Received non-HEX input `%.*s'\n",
+                    (int) hex_len - 2,
+                    &hex[2]);
         GNUNET_break_op (0);
         return;
       }
@@ -1362,6 +1374,10 @@ handle_command (const char *hex,
                            "%4X",
                            &product))
           {
+            GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                        "Received non-HEX input `%.*s'\n",
+                        (int) hex_len - 8,
+                        &hex[8]);
             GNUNET_break_op (0);
             return;
           }

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



reply via email to

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