diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-12-17 19:22:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-12-17 19:22:09 +0000 |
commit | 532e040d61d3a74dc748316510f892924493c5cd (patch) | |
tree | 267703ad3429d3590d2d06201ce692a3eb4da1bd /lib | |
parent | 5edb273dc857487a93a34db25bf3b7d2b6463665 (diff) |
set sa_len too
Diffstat (limited to 'lib')
-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); |