summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>1996-07-29 06:15:29 +0000
committerderaadt <>1996-07-29 06:15:29 +0000
commitf16e645fccbb65fe48490c8afd7515b0ad5f31ee (patch)
tree64947fe87d54418b31be443c27a946c634c0707f /src
parente193bab90b075c24942aeac8fd10132868c9ee76 (diff)
downloadopenbsd-f16e645fccbb65fe48490c8afd7515b0ad5f31ee.tar.gz
openbsd-f16e645fccbb65fe48490c8afd7515b0ad5f31ee.tar.bz2
openbsd-f16e645fccbb65fe48490c8afd7515b0ad5f31ee.zip
ensure bindresvport() is told to find a port
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/net/rcmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/libc/net/rcmd.c b/src/lib/libc/net/rcmd.c
index 28420d20eb..643604f3b3 100644
--- a/src/lib/libc/net/rcmd.c
+++ b/src/lib/libc/net/rcmd.c
@@ -235,6 +235,7 @@ rresvport(alport)
235 (void)close(s); 235 (void)close(s);
236 return (-1); 236 return (-1);
237 } 237 }
238 sin.sin_port = 0;
238 if (bindresvport(s, &sin) == -1) { 239 if (bindresvport(s, &sin) == -1) {
239 (void)close(s); 240 (void)close(s);
240 return (-1); 241 return (-1);