Fix amusingly harmless mis-merge.

This commit is contained in:
Dag-Erling Smørgrav 2017-02-26 16:34:58 +00:00
parent f5d1d20574
commit 8f7bfc76bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314304

View file

@ -319,7 +319,6 @@ add_local_forward(Options *options, const struct Forward *newfwd)
#else
ipport_reserved = IPPORT_RESERVED;
#endif
if (newfwd->listen_port < ipport_reserved && original_real_uid != 0)
if (newfwd->listen_port < ipport_reserved && original_real_uid != 0 &&
newfwd->listen_path == NULL)
fatal("Privileged ports can only be forwarded by root.");