projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c9984
)
Check lengths correctly.
author
Pekka Riikonen
<priikone@silcnet.org>
Thu, 19 Jul 2007 18:22:42 +0000
(18:22 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Thu, 19 Jul 2007 18:22:42 +0000
(18:22 +0000)
lib/silccrypt/silcpk.c
patch
|
blob
|
history
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));