aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-08-09 13:36:02 -0300
committerSebastian <sebasjm@gmail.com>2021-08-09 13:36:26 -0300
commit617da7485c5fac62ade5e08a83e67df103101864 (patch)
tree0a65d686d3da976c8e1bf0db30cf60c6793067dc /src/util
parentc9d94e55bddf51da7b1d30096a2f717879ce2254 (diff)
check iban lower bound
Diffstat (limited to 'src/util')
-rw-r--r--src/util/payto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/payto.c b/src/util/payto.c
index b8fd2e43a..9a04f4c3c 100644
--- a/src/util/payto.c
+++ b/src/util/payto.c
@@ -359,6 +359,8 @@ validate_iban (const char *iban)
unsigned int j;
len = strlen (iban);
+ if (len < 4)
+ return GNUNET_strdup ("IBAN number too short to be valid");
if (len > 34)
return GNUNET_strdup ("IBAN number too long to be valid");
memcpy (cc, iban, 2);