summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/ssh/roaming_common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ssh/roaming_common.c b/usr.bin/ssh/roaming_common.c
index 3304ae98897..335d40239a3 100644
--- a/usr.bin/ssh/roaming_common.c
+++ b/usr.bin/ssh/roaming_common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: roaming_common.c,v 1.6 2009/10/24 11:22:37 andreas Exp $ */
+/* $OpenBSD: roaming_common.c,v 1.7 2009/12/06 23:53:45 djm Exp $ */
/*
* Copyright (c) 2004-2009 AppGate Network Security AB
*
@@ -48,9 +48,9 @@ int
get_snd_buf_size()
{
int fd = packet_get_connection_out();
- int optval, optvallen;
+ int optval;
+ socklen_t optvallen = sizeof(optval);
- optvallen = sizeof(optval);
if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &optval, &optvallen) != 0)
optval = DEFAULT_ROAMBUF;
return optval;
@@ -60,9 +60,9 @@ int
get_recv_buf_size()
{
int fd = packet_get_connection_in();
- int optval, optvallen;
+ int optval;
+ socklen_t optvallen = sizeof(optval);
- optvallen = sizeof(optval);
if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &optval, &optvallen) != 0)
optval = DEFAULT_ROAMBUF;
return optval;