From f3d5011236f21d621dfdf70c2ba5e4b317ad21e0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 3 May 2014 21:53:56 +0100 Subject: [PATCH] Fix enable_password checking. --- interface | 2 +- src/controller.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/interface b/interface index bb9d7a107..dc74a0a93 160000 --- a/interface +++ b/interface @@ -1 +1 @@ -Subproject commit bb9d7a1072f76ec0ac3b7b9547b20040f39763a9 +Subproject commit dc74a0a935175748808f86a8f2e0a183f1788521 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"); -- 2.39.5