From: Vsevolod Stakhov Date: Sat, 3 May 2014 20:53:56 +0000 (+0100) Subject: Fix enable_password checking. X-Git-Tag: 0.7.0~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3d5011236f21d621dfdf70c2ba5e4b317ad21e0;p=thirdparty%2Frspamd.git Fix enable_password checking. --- diff --git a/interface b/interface index bb9d7a1072..dc74a0a935 160000 --- a/interface +++ b/interface @@ -1 +1 @@ -Subproject commit bb9d7a1072f76ec0ac3b7b9547b20040f39763a9 +Subproject commit dc74a0a935175748808f86a8f2e0a183f1788521 diff --git a/src/controller.c b/src/controller.c index 70d7a79194..9b019afdd9 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");