Commit 4bd196ed authored by venaas's avatar venaas Committed by venaas

improved debug output

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@103 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 972cd5e4
......@@ -1437,10 +1437,13 @@ void *clientwr(void *arg) {
rq = server->requests + i;
if (rq->received) {
debug(DBG_DBG, "clientwr: removing received packet from queue");
free(rq->buf);
/* setting this to NULL means that it can be reused */
rq->buf = NULL;
debug(DBG_DBG, "clientwr: packet %d in queue is marked as received", i);
if (rq->buf) {
debug(DBG_DBG, "clientwr: freeing received packet %d from queue", i);
free(rq->buf);
/* setting this to NULL means that it can be reused */
rq->buf = NULL;
}
pthread_mutex_unlock(&server->newrq_mutex);
continue;
}
......
Markdown is supported
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