From 889ceec39a92a9e5bd1fd761367884f304768bc6 Mon Sep 17 00:00:00 2001 From: venaas Date: Wed, 16 Apr 2008 08:10:51 +0000 Subject: fixed problem when client immediately reuses id git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@233 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radsecproxy.c b/radsecproxy.c index 69d5919..f7ca114 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1354,7 +1354,7 @@ int rqinqueue(struct server *to, struct client *from, uint8_t id) { pthread_mutex_lock(&to->newrq_mutex); for (i = 0; i < MAX_REQUESTS; i++) - if (to->requests[i].buf && to->requests[i].origid == id && to->requests[i].from == from) + if (to->requests[i].buf && !to->requests[i].received && to->requests[i].origid == id && to->requests[i].from == from) break; pthread_mutex_unlock(&to->newrq_mutex); -- cgit v1.2.3