summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2008-04-16 08:10:51 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-04-16 08:10:51 +0000
commit552ac29aba625224dce5d9843349d87b559ecf7a (patch)
tree2388386a6e183bbfb3b321167e4e2a5acc618acb
parentd4b8ce94e2b98cf8f359a5ab6d44ef1105ba22fd (diff)
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
-rw-r--r--radsecproxy.c2
1 files changed, 1 insertions, 1 deletions
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);