From 4f752075776c58c49447e2826b37675afc67ee07 Mon Sep 17 00:00:00 2001 From: venaas Date: Fri, 11 Apr 2008 08:08:05 +0000 Subject: fixed bug with timeout and statusserver git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@226 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'radsecproxy.c') diff --git a/radsecproxy.c b/radsecproxy.c index f0d053b..8b7906c 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2075,7 +2075,7 @@ void *clientwr(void *arg) { /* random 0-7 seconds */ RAND_bytes(&rnd, 1); rnd /= 32; - if (!timeout.tv_sec || timeout.tv_sec - now.tv_sec > lastsend.tv_sec + STATUS_SERVER_PERIOD + rnd) + if (!timeout.tv_sec || timeout.tv_sec > lastsend.tv_sec + STATUS_SERVER_PERIOD + rnd) timeout.tv_sec = lastsend.tv_sec + STATUS_SERVER_PERIOD + rnd; } if (timeout.tv_sec) { -- cgit v1.1