aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-05-03 21:53:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-05-03 21:53:56 +0100
commitf3d5011236f21d621dfdf70c2ba5e4b317ad21e0 (patch)
tree3d6e9a5212aa40de3db461d04080d61563b3aa0a
parentd3d0a309c8f9dd86441afb2722d6ca60f787cd66 (diff)
downloadrspamd-f3d5011236f21d621dfdf70c2ba5e4b317ad21e0.tar.gz
rspamd-f3d5011236f21d621dfdf70c2ba5e4b317ad21e0.zip
Fix enable_password checking.
m---------interface0
-rw-r--r--src/controller.c3
2 files changed, 3 insertions, 0 deletions
diff --git a/interface b/interface
-Subproject bb9d7a1072f76ec0ac3b7b9547b20040f39763a
+Subproject dc74a0a935175748808f86a8f2e0a183f178852
diff --git a/src/controller.c b/src/controller.c
index 70d7a7919..9b019afdd 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -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");