From 2f56ae0822a9b116ed74cd1061453ea65f13eb94 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Tue, 16 May 2006 02:34:00 +0000 Subject: [PATCH] Only check passwords on user ports. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1655 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/s_auth.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5786983..660928d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-15 Michael Poole + + * ircd/s_auth.c (check_auth_finished): Only check passwords on + user ports. + 2006-05-14 Michael Poole * doc/example.conf (Connect): Mention the vhost option. diff --git a/ircd/s_auth.c b/ircd/s_auth.c index fdefd97..34baf89 100644 --- a/ircd/s_auth.c +++ b/ircd/s_auth.c @@ -383,12 +383,14 @@ static int check_auth_finished(struct AuthRequest *auth) * as possible so that iauth's challenge/response (which uses PASS * for responses) is not confused with the client's password. */ - if (!FlagHas(&auth->flags, AR_PASSWORD_CHECKED)) + if (IsUserPort(auth->client) + && !FlagHas(&auth->flags, AR_PASSWORD_CHECKED)) { struct ConfItem *aconf; aconf = cli_confs(auth->client)->value.aconf; - if (!EmptyString(aconf->passwd) + if (aconf + && !EmptyString(aconf->passwd) && strcmp(cli_passwd(auth->client), aconf->passwd)) { ServerStats->is_ref++; -- 2.20.1