summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet.c b/packet.c
index ba9341731..5e82fe753 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.c,v 1.173 2011/05/06 21:14:05 djm Exp $ */ 1/* $OpenBSD: packet.c,v 1.174 2011/12/07 05:44:38 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -242,7 +242,7 @@ packet_set_connection(int fd_in, int fd_out)
242void 242void
243packet_set_timeout(int timeout, int count) 243packet_set_timeout(int timeout, int count)
244{ 244{
245 if (timeout == 0 || count == 0) { 245 if (timeout <= 0 || count <= 0) {
246 active_state->packet_timeout_ms = -1; 246 active_state->packet_timeout_ms = -1;
247 return; 247 return;
248 } 248 }