summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index c6d9f182..a66767a9 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1468,7 +1468,7 @@ set_connection_opt(int sock)
#if defined(SOL_TCP) && defined(TCP_KEEPIDLE)
{
const int idle = 300*2; // experimental, minimal keep alive check
- setsockopt(sock, SOL_TCP, TCP_KEEPIDLE, (void*)idle, sizeof(idle));
+ setsockopt(sock, SOL_TCP, TCP_KEEPIDLE, (void*)&idle, sizeof(idle));
}
#endif