Skip to content

Commit cb99e8e

Browse files
committed
upstream: ressurect fix for "match invalid-user" that got clobbered
by 1.423 OpenBSD-Commit-ID: d18bf0945976e0f3467d710d4bc8bdbe181c0567
1 parent 487cf4c commit cb99e8e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

servconf.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: servconf.c,v 1.424 2025/02/15 01:52:07 djm Exp $ */
1+
/* $OpenBSD: servconf.c,v 1.425 2025/02/25 06:25:30 djm Exp $ */
22
/*
33
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
44
* All rights reserved
@@ -1079,8 +1079,10 @@ match_cfg_line(const char *full_line, int *acp, char ***avp,
10791079
}
10801080
/* Criterion "invalid-user" also has no argument */
10811081
if (strcasecmp(attrib, "invalid-user") == 0) {
1082-
if (ci == NULL)
1082+
if (ci == NULL) {
1083+
result = 0;
10831084
continue;
1085+
}
10841086
if (ci->user_invalid == 0)
10851087
result = 0;
10861088
else

0 commit comments

Comments
 (0)