Fixed typo and a bug.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 3 Jul 2000 05:52:11 +0000 (05:52 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 3 Jul 2000 05:52:11 +0000 (05:52 +0000)
apps/silcd/idlist.c

index aa8409abfcbf18da0fe73e896cccf1519cddc44b..bc79e9dfd656733a5e8390155bb67cfc040364f3 100644 (file)
 /*
  * $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));