diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2017-01-21 11:32:05 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2017-01-21 11:32:05 +0000 |
commit | b025a593a7f3a0fe505e8ec32929bdc4fe2cb492 (patch) | |
tree | c2851b59914141ec276fa5f41f40364392ace7b5 /usr.bin/showmount | |
parent | 4459c5ac6936d9fae7cf90f9f546e056dcc7e590 (diff) |
The POSIX APIs that that sockaddrs all ignore the s*_len field in the
incoming socket, so userspace doesn't need to set it unless it has its
own reasons for tracking the size along with the sockaddr.
ok phessler@ deraadt@ florian@
Diffstat (limited to 'usr.bin/showmount')
-rw-r--r-- | usr.bin/showmount/showmount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/showmount/showmount.c b/usr.bin/showmount/showmount.c index 1c5ff28c5bb..05db23d7527 100644 --- a/usr.bin/showmount/showmount.c +++ b/usr.bin/showmount/showmount.c @@ -1,4 +1,4 @@ -/* $OpenBSD: showmount.c,v 1.20 2016/03/16 15:41:11 krw Exp $ */ +/* $OpenBSD: showmount.c,v 1.21 2017/01/21 11:32:04 guenther Exp $ */ /* $NetBSD: showmount.c,v 1.7 1996/05/01 18:14:10 cgd Exp $ */ /* @@ -150,7 +150,6 @@ main(int argc, char *argv[]) exit(1); } bzero(&clnt_sin, sizeof clnt_sin); - clnt_sin.sin_len = sizeof clnt_sin; clnt_sin.sin_family = AF_INET; bcopy(hp->h_addr, (char *)&clnt_sin.sin_addr, hp->h_length); clnt_sock = RPC_ANYSOCK; |