summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2008-04-11 08:08:05 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-04-11 08:08:05 +0000
commit4f752075776c58c49447e2826b37675afc67ee07 (patch)
tree3944658940a27228dc30648df5d94b4d15735529
parent2836acbf8e2c9b530b779646f1264f01775cffbe (diff)
fixed bug with timeout and statusserver
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@226 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--radsecproxy.c2
1 files changed, 1 insertions, 1 deletions
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) {