]> source.dussan.org Git - rspamd.git/commitdiff
Fix enable_password checking.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 3 May 2014 20:53:56 +0000 (21:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 3 May 2014 20:53:56 +0000 (21:53 +0100)
interface
src/controller.c

index bb9d7a1072f76ec0ac3b7b9547b20040f39763a9..dc74a0a935175748808f86a8f2e0a183f1788521 160000 (submodule)
--- a/interface
+++ b/interface
@@ -1 +1 @@
-Subproject commit bb9d7a1072f76ec0ac3b7b9547b20040f39763a9
+Subproject commit dc74a0a935175748808f86a8f2e0a183f1788521
index 70d7a79194ae004ea0361bd873ce8b9e1ec57213..9b019afdd965519cb52c45e321f750f2a1465f3a 100644 (file)
@@ -168,6 +168,9 @@ rspamd_controller_check_password (struct rspamd_http_connection_entry *entry,
                        msg_info ("using password as enable_password for a privileged command");
                        check = ctx->password;
                }
+               else {
+                       check = ctx->enable_password;
+               }
                if (check != NULL) {
                        if (password == NULL || strcmp (password, check) != 0) {
                                msg_info ("incorrect or absent password has been specified");