Fixed double free in CMODE command.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 3 Feb 2003 13:43:03 +0000 (13:43 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 3 Feb 2003 13:43:03 +0000 (13:43 +0000)
apps/silcd/command.c

index a64eb06a90bffd5ef715d4796b3e1ac2f8738141..66ecc11424818b43922e5374b669e81d891f8df4 100644 (file)
@@ -2941,7 +2941,6 @@ SILC_SERVER_CMD_FUNC(cmode)
       hmac = channel->hmac_name;
 
       /* Delete old hmac and allocate default one */
-      silc_hmac_free(channel->hmac);
       if (!silc_hmac_alloc(hmac ? hmac : SILC_DEFAULT_HMAC, NULL, &newhmac)) {
        silc_server_command_send_status_reply(cmd, SILC_COMMAND_CMODE,
                                       SILC_STATUS_ERR_UNKNOWN_ALGORITHM, 0);