taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

commit 010104710d5f8147807d1286521984ef450615c2
parent b17c2d601cbcb877842bde0d8f7ae0c9cdacddc4
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  4 Dec 2019 13:16:36 +0100

invert checks

Diffstat:
Msrc/main.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -1342,7 +1342,7 @@ handle_command (const char *hex, { unsigned int subcmd; - if (4 < hex_len) + if (4 > hex_len) { GNUNET_break_op (0); return; @@ -1365,7 +1365,7 @@ handle_command (const char *hex, unsigned int product; /* NOTE: hex[4..7] contain the price */ - if (12 < hex_len) + if (12 > hex_len) { GNUNET_break_op (0); return;