diff options
author | 1998-05-19 06:58:51 +0000 | |
---|---|---|
committer | 1998-05-19 06:58:51 +0000 | |
commit | e6de867086f977361352a257fa10a2c6bb724b66 (patch) | |
tree | 8b3ee98b8b094ac442d63693b7c2fc638a731ff7 /lib/libc/rpc/clnt_tcp.c | |
parent | start using new apiver things (diff) | |
download | wireguard-openbsd-e6de867086f977361352a257fa10a2c6bb724b66.tar.xz wireguard-openbsd-e6de867086f977361352a257fa10a2c6bb724b66.zip |
incorrect timeout handling
Diffstat (limited to 'lib/libc/rpc/clnt_tcp.c')
-rw-r--r-- | lib/libc/rpc/clnt_tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_tcp.c b/lib/libc/rpc/clnt_tcp.c index b3efd3123f1..929f49713cf 100644 --- a/lib/libc/rpc/clnt_tcp.c +++ b/lib/libc/rpc/clnt_tcp.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: clnt_tcp.c,v 1.15 1997/09/22 05:11:06 millert Exp $"; +static char *rcsid = "$OpenBSD: clnt_tcp.c,v 1.16 1998/05/19 06:58:51 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -429,7 +429,7 @@ readtcp(ct, buf, len) gettimeofday(&after, NULL); timersub(&start, &after, &duration); - timersub(&delta, &duration, &tmp); + timersub(&ct->ct_wait, &duration, &tmp); delta = tmp; if (delta.tv_sec < 0 || !timerisset(&delta)) r = 0; |