From 9bbb2c1b83c9d41cba05a0a929765f972c8218b7 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 3 Feb 2003 13:43:03 +0000 Subject: [PATCH] Fixed double free in CMODE command. --- apps/silcd/command.c | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/silcd/command.c b/apps/silcd/command.c index a64eb06a..66ecc114 100644 --- a/apps/silcd/command.c +++ b/apps/silcd/command.c @@ -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); -- 2.24.0