From: Vsevolod Stakhov Date: Wed, 23 Sep 2015 15:53:30 +0000 (+0100) Subject: Fix double free if no password has been specified. X-Git-Tag: 1.0.2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb856bcce83358f7f3b0fd32afe43a6c6c5eae5e;p=thirdparty%2Frspamd.git Fix double free if no password has been specified. Reported by: Golub Mikhail --- diff --git a/src/controller.c b/src/controller.c index b145037d6d..7005965719 100644 --- a/src/controller.c +++ b/src/controller.c @@ -421,11 +421,6 @@ static gboolean rspamd_controller_check_password( } if (password == NULL) { - - if (query_args != NULL) { - g_hash_table_unref (query_args); - } - if (ctx->secure_map == NULL) { if (ctx->password == NULL && !is_enable) { return TRUE;