Skip to content

Commit fb07101

Browse files
committed
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
1 parent 729a26a commit fb07101

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

servconf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,10 @@ match_cfg_line(const char *full_line, int *acp, char ***avp,
10731073
}
10741074
/* Criterion "invalid-user" also has no argument */
10751075
if (strcasecmp(attrib, "invalid-user") == 0) {
1076-
if (ci == NULL)
1076+
if (ci == NULL) {
1077+
result = 0;
10771078
continue;
1079+
}
10781080
if (ci->user_invalid == 0)
10791081
result = 0;
10801082
else

0 commit comments

Comments
 (0)