]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Treat normal password as enable password if there is no enable password
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 17 Oct 2018 16:44:52 +0000 (17:44 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 17 Oct 2018 16:44:52 +0000 (17:44 +0100)
src/controller.c

index 88d1d0ed6f94c95edf01be7a3e5b438e11ff3623..e533c12ceebb2bb41d5069fbc66a08818bb5f464 100644 (file)
@@ -666,6 +666,14 @@ rspamd_controller_check_password (struct rspamd_http_connection_entry *entry,
                        }
                        else {
                                check_enable = FALSE;
+
+                               if (check_normal) {
+                                       /*
+                                        * If no enable password is specified use normal password as
+                                        * enable password
+                                        */
+                                       session->is_enable = TRUE;
+                               }
                        }
                }
        }