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");