From 936acfa13116a7cb81e656db3acc31c5f9ab2fd5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 25 Jan 2016 12:53:07 +0100 Subject: check type in plugin --- src/wire/plugin_wire_sepa.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/wire/plugin_wire_sepa.c') diff --git a/src/wire/plugin_wire_sepa.c b/src/wire/plugin_wire_sepa.c index 1867c048..00d19d4b 100644 --- a/src/wire/plugin_wire_sepa.c +++ b/src/wire/plugin_wire_sepa.c @@ -385,6 +385,14 @@ sepa_wire_validate (const json_t *wire) TALER_json_warn (error); return GNUNET_SYSERR; } + if (0 != strcasecmp (type, + "sepa")) + { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Transfer type `%s' invalid\n", + type); + return GNUNET_SYSERR; + } if (1 != validate_iban (iban)) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, -- cgit v1.2.3