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 | 69451bc6b2e5379508f59503d7edf99bfd79a4cc (patch) | |
tree | b073c2d2a27038f037ccd950677873da4d8b14de | |
parent | 652d6bafd0d9e4daacc6043472ee278959b0499e (diff) |
fixed problem when client immediately reuses id
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@233 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r-- | radsecproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index b12de9a..0d56d0e 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1332,7 +1332,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); |