projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check lengths correctly.
[silc.git]
/
lib
/
silccrypt
/
silcpk.c
diff --git
a/lib/silccrypt/silcpk.c
b/lib/silccrypt/silcpk.c
index c9de54924fb9bdb0b39ed381e162fb8436b29147..9b11852de30515006ce90cb5804c933e8f5eef5c 100644
(file)
--- a/
lib/silccrypt/silcpk.c
+++ b/
lib/silccrypt/silcpk.c
@@
-206,7
+206,7
@@
char *silc_pkcs_silc_encode_identifier(char *username, char *host,
if (!username || !host)
return NULL;
- if (strlen(username) <
3 || strlen(host) < 3
)
+ if (strlen(username) <
1 || strlen(host) < 1
)
return NULL;
memset(&buf, 0, sizeof(buf));