From e6de867086f977361352a257fa10a2c6bb724b66 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 19 May 1998 06:58:51 +0000 Subject: incorrect timeout handling --- lib/libc/rpc/clnt_tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/rpc/clnt_tcp.c') 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; -- cgit v1.2.3-59-g8ed1b