diff options
Diffstat (limited to 'lib/libc/rpc/bindresvport.c')
-rw-r--r-- | lib/libc/rpc/bindresvport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/rpc/bindresvport.c b/lib/libc/rpc/bindresvport.c index fe5ab3b1210..d30ef7b4d3b 100644 --- a/lib/libc/rpc/bindresvport.c +++ b/lib/libc/rpc/bindresvport.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: bindresvport.c,v 1.10 1999/12/16 21:30:35 deraadt Exp $"; +static char *rcsid = "$OpenBSD: bindresvport.c,v 1.11 1999/12/17 19:22:08 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -95,6 +95,7 @@ bindresvport_af(sd, sa, af) return (-1); } sa->sa_family = af; + sa->sa_len = salen; if (*portp == 0) { int oldlen = sizeof(old); |