From dc5972e5050ab7bc65a018ec15bd571558b2982e Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 3 Jul 2000 05:52:11 +0000 Subject: [PATCH] Fixed typo and a bug. --- apps/silcd/idlist.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/silcd/idlist.c b/apps/silcd/idlist.c index aa8409ab..bc79e9df 100644 --- a/apps/silcd/idlist.c +++ b/apps/silcd/idlist.c @@ -20,8 +20,11 @@ /* * $Id$ * $Log$ - * Revision 1.1 2000/06/27 11:36:56 priikone - * Initial revision + * Revision 1.2 2000/07/03 05:52:11 priikone + * Fixed typo and a bug. + * + * Revision 1.1.1.1 2000/06/27 11:36:56 priikone + * Importet from internal CVS/Added Log headers. * * */ @@ -367,7 +370,7 @@ void silc_idlist_del_channel(SilcChannelList **list, SilcChannelList *entry) if (entry->channel_key) silc_cipher_free(entry->channel_key); if (entry->key) { - memset(entry->key, 0, entry->key_len); + memset(entry->key, 0, entry->key_len / 8); silc_free(entry->key); } memset(entry->iv, 0, sizeof(entry->iv)); -- 2.43.0