summaryrefslogtreecommitdiffhomepage
path: root/tcpfwd-remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcpfwd-remote.c')
-rw-r--r--tcpfwd-remote.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tcpfwd-remote.c b/tcpfwd-remote.c
index 880044f..16b1105 100644
--- a/tcpfwd-remote.c
+++ b/tcpfwd-remote.c
@@ -208,13 +208,10 @@ static int remotetcpreq() {
goto out;
}
- /* XXX matt - server change
- if (ses.authstate.pw->pw_uid != 0
- && port < IPPORT_RESERVED) {
+ if (!ses.allowprivport && port < IPPORT_RESERVED) {
TRACE(("can't assign port < 1024 for non-root"));
goto out;
}
- */
ret = listen_tcpfwd(bindaddr, port);