diff options
Diffstat (limited to 'src/util/iban.c')
-rw-r--r-- | src/util/iban.c | 2 |
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) | |||
226 | unsigned int i; | 226 | unsigned int i; |
227 | unsigned int j; | 227 | unsigned int j; |
228 | 228 | ||
229 | if (NULL == iban) | ||
230 | return GNUNET_strdup ("(null) is not a valid IBAN"); | ||
229 | len = strlen (iban); | 231 | len = strlen (iban); |
230 | if (len < 4) | 232 | if (len < 4) |
231 | return GNUNET_strdup ("IBAN number too short to be valid"); | 233 | return GNUNET_strdup ("IBAN number too short to be valid"); |