From fdddc64a7f3683fee92aa51b7bb6903cdca5a686 Mon Sep 17 00:00:00 2001 From: djm Date: Mon, 17 Jul 2023 06:16:33 +0000 Subject: [PATCH] missing match localnetwork negation check --- usr.bin/ssh/readconf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c index 21a552e7c5a..ed119981194 100644 --- a/usr.bin/ssh/readconf.c +++ b/usr.bin/ssh/readconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readconf.c,v 1.379 2023/07/17 04:08:31 djm Exp $ */ +/* $OpenBSD: readconf.c,v 1.380 2023/07/17 06:16:33 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -730,6 +730,8 @@ match_cfg_line(Options *options, char **condition, struct passwd *pw, goto out; } r = check_match_ifaddrs(arg) == 1; + if (r == (negate ? 1 : 0)) + this_result = result = 0; } else if (strcasecmp(attrib, "tagged") == 0) { criteria = xstrdup(options->tag == NULL ? "" : options->tag); -- 2.20.1