diff options
author | venaas <venaas> | 2008-04-16 08:10:51 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-04-16 08:10:51 +0000 |
commit | 889ceec39a92a9e5bd1fd761367884f304768bc6 (patch) | |
tree | b68d23090ce2ed4f2fc59f2c8f55ab510c39a645 /radsecproxy.c | |
parent | 6d5f68b3aa3cbb9961b31965d16dacc8c7971f03 (diff) |
fixed problem when client immediately reuses id
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@233 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |