[openssh-commits] [openssh] 02/03: fix incorrect warning message under SKIP_PRIVDROP

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Oct 14 15:12:14 AEDT 2026


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 25e0d74adfe0c33dc138e9149a9d01286b9a6d03
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Wed Oct 14 15:09:59 2026 +1100

    fix incorrect warning message under SKIP_PRIVDROP
---
 servconf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/servconf.c b/servconf.c
index a8cbb3bcf..e55a614ae 100644
--- a/servconf.c
+++ b/servconf.c
@@ -280,7 +280,7 @@ fill_default_server_options(ServerOptions *options)
 		logit("StreamlocalForwarding is not supported on this system");
 	options->allow_streamlocal_forwarding = 0;
 	if (options->fwd_opts.gateway_ports != -1 &&
-	    options->fwd_opts.gateway_ports == 0)
+	    options->fwd_opts.gateway_ports != 0)
 		logit("GatewayPorts is not supported on this system");
 	options->fwd_opts.gateway_ports = 0;
 #endif

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list