From ada38f7ac3a87bf5e780cf6a8e5ff50fa31eda87 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Mon, 7 Sep 2015 16:44:08 +0200 Subject: [PATCH] Fix explicit password method in .conf no longer working, eg: password "....." { md5; }; --- src/s_conf.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/s_conf.c b/src/s_conf.c index ee9d0dc78..167e99220 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -3810,6 +3810,18 @@ int _test_oper(ConfigFile *conf, ConfigEntry *ce) if (cep->ce_vardata || cep->ce_entries) has_mask = 1; } + else if (!strcmp(cep->ce_varname, "password")) + { + if (has_password) + { + config_warn_duplicate(cep->ce_fileptr->cf_filename, + cep->ce_varlinenum, "oper::password"); + continue; + } + has_password = 1; + if (Auth_CheckError(cep) < 0) + errors++; + } else { config_error_unknown(cep->ce_fileptr->cf_filename,