Commit 06185018 authored by venaas's avatar venaas Committed by venaas

fixed harmless expiry timer issue

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@94 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent df0d41a4
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment