[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.
- [taler-taler-mdb] 21/23: fix NPE, (continued)
- [taler-taler-mdb] 21/23: fix NPE, gnunet, 2019/12/04
- [taler-taler-mdb] 22/23: logging, gnunet, 2019/12/04
- [taler-taler-mdb] 17/23: invert checks, gnunet, 2019/12/04
- [taler-taler-mdb] 19/23: fix end session handling, gnunet, 2019/12/04
- [taler-taler-mdb] 11/23: use more named constants, gnunet, 2019/12/04
- [taler-taler-mdb] 14/23: fix FTBFS, gnunet, 2019/12/04
- [taler-taler-mdb] 12/23: nicer logging, gnunet, 2019/12/04
- [taler-taler-mdb] 07/23: refactor, gnunet, 2019/12/04
- [taler-taler-mdb] 18/23: invert checks, gnunet, 2019/12/04
- [taler-taler-mdb] 20/23: add 'a' command, gnunet, 2019/12/04
- [taler-taler-mdb] 16/23: clarify input,
gnunet <=