]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: make PerSourceMaxStartups first-match-wins; ok dtucker@
authordjm@openbsd.org <djm@openbsd.org>
Tue, 29 Aug 2023 02:50:10 +0000 (02:50 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 29 Aug 2023 05:01:47 +0000 (15:01 +1000)
OpenBSD-Commit-ID: dac0c24cb709e3c595b8b4f422a0355dc5a3b4e7

servconf.c

index 45a2f2c2781ca90090bde3d62494baed8e1a04cb..e16f9e90fc7123c06758237147312f51c06a6224 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.396 2023/07/17 05:26:38 djm Exp $ */
+/* $OpenBSD: servconf.c,v 1.397 2023/08/29 02:50:10 djm Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
@@ -2030,7 +2030,7 @@ process_server_config_line_depth(ServerOptions *options, char *line,
                                fatal("%s line %d: %s integer value %s.",
                                    filename, linenum, keyword, errstr);
                }
-               if (*activep)
+               if (*activep && options->per_source_max_startups == -1)
                        options->per_source_max_startups = value;
                break;