diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-29 06:15:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-29 06:15:30 +0000 |
commit | 113188295a043c61062195aafecf8391da5c09ca (patch) | |
tree | 9f2406d3da1f05fdd0ad5790cacec8c3d8cfea53 /lib/libc/net/rcmd.c | |
parent | dafa39ae24020ad6a13b62dfb79d9c42fec6656a (diff) |
ensure bindresvport() is told to find a port
Diffstat (limited to 'lib/libc/net/rcmd.c')
-rw-r--r-- | lib/libc/net/rcmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index 28420d20ebe..643604f3b30 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -235,6 +235,7 @@ rresvport(alport) (void)close(s); return (-1); } + sin.sin_port = 0; if (bindresvport(s, &sin) == -1) { (void)close(s); return (-1); |