From 5e16ac3a6681ff6f84307bb26c14091a15b169f9 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 19 Jul 2007 18:22:42 +0000 Subject: [PATCH] Check lengths correctly. --- lib/silccrypt/silcpk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/silccrypt/silcpk.c b/lib/silccrypt/silcpk.c index c9de5492..9b11852d 100644 --- 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)); -- 2.24.0