fixed harmless expiry timer issue
authorvenaas <venaas>
Tue, 22 May 2007 07:58:19 +0000 (07:58 +0000)
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Tue, 22 May 2007 07:58:19 +0000 (07:58 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@94 e88ac4ed-0b26-0410-9574-a7f39faa03bf

radsecproxy.c

index 7b512d7..02cf142 100644 (file)
@@ -1411,7 +1411,7 @@ void *clientwr(void *arg) {
             }
            
            gettimeofday(&now, NULL);
-            if (now.tv_sec <= rq->expiry.tv_sec) {
+            if (now.tv_sec < rq->expiry.tv_sec) {
                if (!timeout.tv_sec || rq->expiry.tv_sec < timeout.tv_sec)
                    timeout.tv_sec = rq->expiry.tv_sec;
                pthread_mutex_unlock(&server->newrq_mutex);