From bbce483ba0fc2b0aa832c47bfa949481eea3bf98 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 Aug 2021 08:31:01 +0200 Subject: -handle NULL nicely --- src/util/iban.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/util/iban.c b/src/util/iban.c index 7cf928494..efd8c4282 100644 --- a/src/util/iban.c +++ b/src/util/iban.c @@ -226,6 +226,8 @@ TALER_iban_validate (const char *iban) unsigned int i; unsigned int j; + if (NULL == iban) + return GNUNET_strdup ("(null) is not a valid IBAN"); len = strlen (iban); if (len < 4) return GNUNET_strdup ("IBAN number too short to be valid"); -- cgit v1.2.3