From d8d491f554988814894c0573211e31cfeca0a4e5 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 21 May 2001 06:51:57 +0000 Subject: [PATCH] updates. --- CHANGES | 4 ++++ lib/silccrypt/silccipher.c | 3 +-- lib/silccrypt/silchash.c | 3 +-- lib/silccrypt/silchmac.c | 3 +-- lib/silccrypt/silcpkcs.c | 3 +-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGES b/CHANGES index 0af54380..90eff4f9 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +Mon May 21 09:51:11 EEST 2001 Pekka Riikonen + + * Fixed silc_xxx_get_supported to not crash at some circumstances. + Sun May 20 13:45:58 EEST 2001 Pekka Riikonen * silc_idcache_purge_by_context deletes the entry now by context diff --git a/lib/silccrypt/silccipher.c b/lib/silccrypt/silccipher.c index fea37774..79d6e7b7 100644 --- a/lib/silccrypt/silccipher.c +++ b/lib/silccrypt/silccipher.c @@ -223,10 +223,9 @@ char *silc_cipher_get_supported(void) memcpy(list + len, ",", 1); len++; } + list[len - 1] = 0; } - list[len - 1] = 0; - return list; } diff --git a/lib/silccrypt/silchash.c b/lib/silccrypt/silchash.c index 865deab4..819a2fab 100644 --- a/lib/silccrypt/silchash.c +++ b/lib/silccrypt/silchash.c @@ -186,10 +186,9 @@ char *silc_hash_get_supported(void) memcpy(list + len, ",", 1); len++; } + list[len - 1] = 0; } - list[len - 1] = 0; - return list; } diff --git a/lib/silccrypt/silchmac.c b/lib/silccrypt/silchmac.c index 2c9147a8..c2baf7d9 100644 --- a/lib/silccrypt/silchmac.c +++ b/lib/silccrypt/silchmac.c @@ -203,10 +203,9 @@ char *silc_hmac_get_supported() memcpy(list + len, ",", 1); len++; } + list[len - 1] = 0; } - list[len - 1] = 0; - return list; } diff --git a/lib/silccrypt/silcpkcs.c b/lib/silccrypt/silcpkcs.c index 80ff59ba..d69ef230 100644 --- a/lib/silccrypt/silcpkcs.c +++ b/lib/silccrypt/silcpkcs.c @@ -194,10 +194,9 @@ char *silc_pkcs_get_supported(void) memcpy(list + len, ",", 1); len++; } + list[len - 1] = 0; } - list[len - 1] = 0; - return list; } -- 2.24.0