unbreak SKIP_PRIVDROP case

This commit is contained in:
Damien Miller committed 2026-10-14 09:00:23 +05:30
1 parent 773771be4a
commit c5fa43c582
1 file changed
+1 -2
+1 -2
View File
@@ -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