commit bbce483ba0fc2b0aa832c47bfa949481eea3bf98
parent 8590e6b309df2736835673eb427673c099fc3f08
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 23 Aug 2021 08:31:01 +0200
-handle NULL nicely
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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");