[openssh-commits] [openssh] 01/02: unbreak SKIP_PRIVDROP case

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Oct 14 15:00:19 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 c5fa43c582b17cf501e01a068ce61f6fbdad48fd
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Wed Oct 14 09:00:23 2026 +0530

    unbreak SKIP_PRIVDROP case
---
 channels.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/channels.c b/channels.c
index 363dc1378..15ec05130 100644
--- a/channels.c
+++ b/channels.c
@@ -4352,8 +4352,7 @@ check_rfwd_permission(struct ssh *ssh, struct Forward *fwd)
 #ifdef SKIP_PRIVDROP
 	if (fwd->listen_path != NULL)
 		return 0;
-	if (allowed_open->listen_port != FWD_PERMIT_ANY_PORT &&
-	    allowed_open->listen_port < 1024)
+	if (fwd->listen_port != 0 && fwd->listen_port < 1024)
 		return 0;
 #endif
 

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


More information about the openssh-commits mailing list