From: Pekka Riikonen Date: Mon, 21 May 2001 06:51:57 +0000 (+0000) Subject: updates. X-Git-Tag: SILC.0.2.6~3 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=d8d491f554988814894c0573211e31cfeca0a4e5 updates. --- 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; }