summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2023-08-29 02:50:10 +0000
committerDamien Miller <djm@mindrot.org>2023-08-29 15:01:47 +1000
commitf98031773db361424d59e3301aa92aacf423d920 (patch)
treea64c49c47211be26746360445ebc95967a541169
parentcfa66857db90cd908de131e0041a50ffc17c7df8 (diff)
upstream: make PerSourceMaxStartups first-match-wins; ok dtucker@
-rw-r--r--servconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/servconf.c b/servconf.c
index 45a2f2c2..e16f9e90 100644
--- a/servconf.c
+++ b/servconf.c
@@ -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;