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
commit9efa0f4fa46558f4f3d1cfe90ddaa32e4c570eeb (patch)
tree8e7fa95fc5c33630b93e189506c0052b309c4803
parent740f81cdc46efebbdabfb8f21655e29fa643eb1d (diff)
fixed bug with timeout and statusserver
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@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 3dc6169..1178273 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2053,7 +2053,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) {