]> source.dussan.org Git - rspamd.git/commitdiff
Fix double free if no password has been specified.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Sep 2015 15:53:30 +0000 (16:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Sep 2015 15:53:30 +0000 (16:53 +0100)
Reported by: Golub Mikhail

src/controller.c

index b145037d6d6520af9ca8aa5badd850d5f191b0fa..7005965719087be016947403b41cbb2f8c9b43ea 100644 (file)
@@ -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;