[openssh-commits] [openssh] branch V_9_9 updated: upstream: fix "Match invalid-user" from incorrectly being activated
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Feb 11 10:37:30 AEDT 2025
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch V_9_9
in repository openssh.
The following commit(s) were added to refs/heads/V_9_9 by this push:
new fb071011 upstream: fix "Match invalid-user" from incorrectly being activated
fb071011 is described below
commit fb071011fb843142282b8b8a69cbb15e9b0b9485
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Mon Feb 10 23:00:29 2025 +0000
upstream: fix "Match invalid-user" from incorrectly being activated
in initial configuration pass when no other predicates were present on the
match line
OpenBSD-Commit-ID: 02703b4bd207fafd03788bc4e7774bf80be6c9a8
---
servconf.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/servconf.c b/servconf.c
index dd774f46..bef1b511 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1073,8 +1073,10 @@ match_cfg_line(const char *full_line, int *acp, char ***avp,
}
/* Criterion "invalid-user" also has no argument */
if (strcasecmp(attrib, "invalid-user") == 0) {
- if (ci == NULL)
+ if (ci == NULL) {
+ result = 0;
continue;
+ }
if (ci->user_invalid == 0)
result = 0;
else
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list