summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/serverloop.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2012-06-20 04:42:58 +0000
committerdjm <djm@openbsd.org>2012-06-20 04:42:58 +0000
commit5c8cdfd324993db24286d9dd26b90fac36105ecf (patch)
tree6cc4db0fe23c53382efcd9c4d139dfa02ab23613 /usr.bin/ssh/serverloop.c
parenttweak previous; ok markus (diff)
downloadwireguard-openbsd-5c8cdfd324993db24286d9dd26b90fac36105ecf.tar.xz
wireguard-openbsd-5c8cdfd324993db24286d9dd26b90fac36105ecf.zip
initialise accept() backoff timer to avoid EINVAL from select(2) in
rekeying
Diffstat (limited to 'usr.bin/ssh/serverloop.c')
-rw-r--r--usr.bin/ssh/serverloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c
index a888443a579..2105cc818ff 100644
--- a/usr.bin/ssh/serverloop.c
+++ b/usr.bin/ssh/serverloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: serverloop.c,v 1.161 2012/04/11 13:16:19 djm Exp $ */
+/* $OpenBSD: serverloop.c,v 1.162 2012/06/20 04:42:58 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -275,7 +275,7 @@ wait_until_can_do_something(fd_set **readsetp, fd_set **writesetp, int *maxfdp,
{
struct timeval tv, *tvp;
int ret;
- time_t minwait_secs;
+ time_t minwait_secs = 0;
int client_alive_scheduled = 0;
/* Allocate and update select() masks for channel descriptors. */