diff options
author | venaas <venaas> | 2008-04-11 08:08:05 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-04-11 08:08:05 +0000 |
commit | 9efa0f4fa46558f4f3d1cfe90ddaa32e4c570eeb (patch) | |
tree | 8e7fa95fc5c33630b93e189506c0052b309c4803 /radsecproxy.c | |
parent | 740f81cdc46efebbdabfb8f21655e29fa643eb1d (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
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 2 |
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) { |