diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.266 2017/10/25 00:17:08 djm Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.267 2017/11/25 06:46:22 dtucker 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 |
@@ -1332,7 +1332,7 @@ ssh_packet_read_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) | |||
1332 | for (;;) { | 1332 | for (;;) { |
1333 | if (state->packet_timeout_ms != -1) { | 1333 | if (state->packet_timeout_ms != -1) { |
1334 | ms_to_timeval(&timeout, ms_remain); | 1334 | ms_to_timeval(&timeout, ms_remain); |
1335 | gettimeofday(&start, NULL); | 1335 | monotime_tv(&start); |
1336 | } | 1336 | } |
1337 | if ((r = select(state->connection_in + 1, setp, | 1337 | if ((r = select(state->connection_in + 1, setp, |
1338 | NULL, NULL, timeoutp)) >= 0) | 1338 | NULL, NULL, timeoutp)) >= 0) |
@@ -1959,7 +1959,7 @@ ssh_packet_write_wait(struct ssh *ssh) | |||
1959 | for (;;) { | 1959 | for (;;) { |
1960 | if (state->packet_timeout_ms != -1) { | 1960 | if (state->packet_timeout_ms != -1) { |
1961 | ms_to_timeval(&timeout, ms_remain); | 1961 | ms_to_timeval(&timeout, ms_remain); |
1962 | gettimeofday(&start, NULL); | 1962 | monotime_tv(&start); |
1963 | } | 1963 | } |
1964 | if ((ret = select(state->connection_out + 1, | 1964 | if ((ret = select(state->connection_out + 1, |
1965 | NULL, setp, NULL, timeoutp)) >= 0) | 1965 | NULL, setp, NULL, timeoutp)) >= 0) |