summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2007-05-23 15:11:21 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-05-23 15:11:21 +0000
commit4bd196ed592bcc8e9689d862aee5af0486266895 (patch)
tree4e9b15447f50d9a8919ab438407fce135be4defc /radsecproxy.c
parent972cd5e42f11f5780aca053a61f812daa2bbf164 (diff)
improved debug output
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@103 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index e72b698..b90ddbb 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -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;
}