From 552ac29aba625224dce5d9843349d87b559ecf7a 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/branches/release-1.0@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 820646f..b3c892e 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1028,7 +1028,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.1