mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-03-25 04:36:33 +00:00
upstream: ressurect fix for "match invalid-user" that got clobbered
by 1.423 OpenBSD-Commit-ID: d18bf0945976e0f3467d710d4bc8bdbe181c0567
This commit is contained in:
parent
487cf4c18c
commit
cb99e8eb22
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: servconf.c,v 1.424 2025/02/15 01:52:07 djm Exp $ */
|
/* $OpenBSD: servconf.c,v 1.425 2025/02/25 06:25:30 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
* All rights reserved
|
* All rights reserved
|
||||||
@ -1079,8 +1079,10 @@ match_cfg_line(const char *full_line, int *acp, char ***avp,
|
|||||||
}
|
}
|
||||||
/* Criterion "invalid-user" also has no argument */
|
/* Criterion "invalid-user" also has no argument */
|
||||||
if (strcasecmp(attrib, "invalid-user") == 0) {
|
if (strcasecmp(attrib, "invalid-user") == 0) {
|
||||||
if (ci == NULL)
|
if (ci == NULL) {
|
||||||
|
result = 0;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
if (ci->user_invalid == 0)
|
if (ci->user_invalid == 0)
|
||||||
result = 0;
|
result = 0;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user