]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: fix previous
authordjm@openbsd.org <djm@openbsd.org>
Tue, 2 Sep 2025 01:03:43 +0000 (01:03 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 2 Sep 2025 01:04:21 +0000 (11:04 +1000)
OpenBSD-Commit-ID: 09d95dfb5e064a1d0e74afba8d77474cc1d110a4

servconf.c

index 2c51637fd5f0f2cf4f8b86a18092a777471fce7a..415868b32520aec7b9846c9d09ec33de1d67f683 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.432 2025/09/01 23:53:16 djm Exp $ */
+/* $OpenBSD: servconf.c,v 1.433 2025/09/02 01:03:43 djm Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
@@ -2016,7 +2016,7 @@ process_server_config_line_depth(ServerOptions *options, char *line,
                        fatal("%s line %d: Invalid %s spec.",
                            filename, linenum, keyword);
                }
-               if (value3 <= 0 || value <= 0)
+               if (value3 <= 0 || (value2 != -1 && value <= 0))
                        fatal("%s line %d: Invalid %s spec.",
                            filename, linenum, keyword);
                if (*activep && options->max_startups == -1) {