diff options
author | Damien Miller <djm@mindrot.org> | 2011-12-19 00:52:50 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2011-12-19 00:52:50 +0100 |
commit | 8ed4de8f1dcebddd7edc0dd3c10f1cb947d831eb (patch) | |
tree | 3c9442e4dfcae3662f42cb53cccc7e45f98c0897 /packet.c | |
parent | - djm@cvs.openbsd.org 2011/12/04 23:16:12 (diff) | |
download | openssh-8ed4de8f1dcebddd7edc0dd3c10f1cb947d831eb.tar.xz openssh-8ed4de8f1dcebddd7edc0dd3c10f1cb947d831eb.zip |
- djm@cvs.openbsd.org 2011/12/07 05:44:38
[auth2.c dh.c packet.c roaming.h roaming_client.c roaming_common.c]
fix some harmless and/or unreachable int overflows;
reported Xi Wang, ok markus@
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.173 2011/05/06 21:14:05 djm Exp $ */ +/* $OpenBSD: packet.c,v 1.174 2011/12/07 05:44:38 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -242,7 +242,7 @@ packet_set_connection(int fd_in, int fd_out) void packet_set_timeout(int timeout, int count) { - if (timeout == 0 || count == 0) { + if (timeout <= 0 || count <= 0) { active_state->packet_timeout_ms = -1; return; } |