summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-04-02 00:36:05 +0000
committerderaadt <deraadt@openbsd.org>2006-04-02 00:36:05 +0000
commit3732884c7a0c60e5e68959662bb2349b500b367a (patch)
tree09849b9406094855f04a2aa75dd1c280ffc61c43
parentDo not attempt to print parameters which turned out to be dead; fixes PR#5066. (diff)
downloadwireguard-openbsd-3732884c7a0c60e5e68959662bb2349b500b367a.tar.xz
wireguard-openbsd-3732884c7a0c60e5e68959662bb2349b500b367a.zip
sprinkle a socklen_t
-rw-r--r--lib/libc/rpc/svc_tcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/rpc/svc_tcp.c b/lib/libc/rpc/svc_tcp.c
index bb999374b0e..8d082e142b5 100644
--- a/lib/libc/rpc/svc_tcp.c
+++ b/lib/libc/rpc/svc_tcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svc_tcp.c,v 1.27 2005/10/10 12:00:52 espie Exp $ */
+/* $OpenBSD: svc_tcp.c,v 1.28 2006/04/02 00:36:05 deraadt Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -258,7 +258,8 @@ rendezvous_request(SVCXPRT *xprt, struct rpc_msg *ignored)
#ifdef IP_OPTIONS
{
struct ipoption opts;
- int optsize = sizeof(opts), i;
+ socklen_t optsize = sizeof(opts);
+ int i;
if (!getsockopt(sock, IPPROTO_IP, IP_OPTIONS, (char *)&opts,
&optsize) && optsize != 0) {