From: djm@openbsd.org Date: Mon, 10 Feb 2025 23:00:29 +0000 (+0000) Subject: upstream: fix "Match invalid-user" from incorrectly being activated X-Git-Tag: V_10_0_P1~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af49d474e481d2d78b2f06b06a06b0b37629358e;p=thirdparty%2Fopenssh-portable.git 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 --- diff --git a/servconf.c b/servconf.c index 112b65799..a49055002 100644 --- a/servconf.c +++ b/servconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: servconf.c,v 1.421 2025/01/15 22:23:13 dtucker Exp $ */ +/* $OpenBSD: servconf.c,v 1.422 2025/02/10 23:00:29 djm Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved @@ -1077,8 +1077,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