summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-23 08:31:01 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-23 08:31:01 +0200
commitbbce483ba0fc2b0aa832c47bfa949481eea3bf98 (patch)
tree54f9692c2772a2f4e9efb70cbf1273839519260d
parent8590e6b309df2736835673eb427673c099fc3f08 (diff)
downloadexchange-bbce483ba0fc2b0aa832c47bfa949481eea3bf98.tar.gz
exchange-bbce483ba0fc2b0aa832c47bfa949481eea3bf98.tar.bz2
exchange-bbce483ba0fc2b0aa832c47bfa949481eea3bf98.zip
-handle NULL nicely
-rw-r--r--src/util/iban.c2
1 files changed, 2 insertions, 0 deletions
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");