Commit 889ceec3 authored by venaas's avatar venaas Committed by venaas
Browse files

fixed problem when client immediately reuses id

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@233 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 6d5f68b3
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment