aboutsummaryrefslogtreecommitdiff
path: root/src/bank
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-05-17 22:21:24 +0200
committerChristian Grothoff <christian@grothoff.org>2023-05-17 22:21:24 +0200
commit549e70fbc14fc18db7f5fe9266e91b7d13818671 (patch)
treedb2eda44394abaa3ecc51e2f042d9c7576f7ef80 /src/bank
parentb712481beaeb1dcc2e2a7195d0607a3c0f073665 (diff)
-fix crash reported by sebas
Diffstat (limited to 'src/bank')
-rw-r--r--src/bank/mb_parse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bank/mb_parse.c b/src/bank/mb_parse.c
index c92dead4..275fdc92 100644
--- a/src/bank/mb_parse.c
+++ b/src/bank/mb_parse.c
@@ -137,6 +137,11 @@ TALER_MERCHANT_BANK_auth_parse_json (
auth->wire_gateway_url = GNUNET_strdup (backend_url);
method = json_string_value (json_object_get (cred,
"type"));
+ if (NULL == method)
+ {
+ GNUNET_break_op (0);
+ return GNUNET_SYSERR;
+ }
for (unsigned int i = 0; NULL != methods[i].m; i++)
{
if (0 == strcasecmp (method,