[openssh-commits] [openssh] 02/12: upstream: Fix possible sshd crash when sshd_config set MaxStartups
git+noreply at mindrot.org
git+noreply at mindrot.org
Thu Apr 2 20:26:17 AEDT 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch V_10_3
in repository openssh.
commit 78d549857e0cc480c3cbb0a3571078920e3b79c5
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Thu Apr 2 07:38:14 2026 +0000
upstream: Fix possible sshd crash when sshd_config set MaxStartups
to a value <10 using the single-argument form of MaxStartups (e.g.
MaxStartups=3). This doesn't affect the three-argument form of the directive
(e.g. MaxStartups 3:20:5).
Patch from Peter Kaestle via bz3941
OpenBSD-Commit-ID: 1ad093cae69f55ebfdea1ab24318aefd593d63b8
---
servconf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/servconf.c b/servconf.c
index 14f0cabad..668259a20 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.445 2026/02/17 21:45:07 djm Exp $ */
+/* $OpenBSD: servconf.c,v 1.446 2026/04/02 07:38:14 djm Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -2015,12 +2015,12 @@ process_server_config_line_depth(ServerOptions *options, char *line,
filename, linenum, keyword);
} else if (n == 1) {
value3 = value;
- value = value2 = -1;
+ value2 = -1;
} else {
fatal("%s line %d: Invalid %s spec.",
filename, linenum, keyword);
}
- if (value3 <= 0 || (value2 != -1 && value <= 0))
+ if (value <= 0 || value3 <= 0)
fatal("%s line %d: Invalid %s spec.",
filename, linenum, keyword);
if (*activep && options->max_startups == -1) {
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list