Mercurial > dropbear
diff tcpfwd-remote.c @ 21:d7cc5b484a2e
- Port restriction code back in
- Remove bad strerror() logging
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 22 Jun 2004 10:47:16 +0000 |
parents | f76c9389e9e0 |
children | 469950e86d0f |
line wrap: on
line diff
--- a/tcpfwd-remote.c Thu Jun 03 18:08:34 2004 +0000 +++ b/tcpfwd-remote.c Tue Jun 22 10:47:16 2004 +0000 @@ -208,13 +208,10 @@ 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);