diff options
author | venaas <venaas> | 2008-09-17 09:20:48 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-09-17 09:20:48 +0000 |
commit | 1e46e5030af79fae82a15a4d25f5e09d5a092719 (patch) | |
tree | 35902da847e3dd283312846ae4a6fd1d14165343 /radsecproxy.c | |
parent | bfa5790da4c87934763c66531e25cb473306ac39 (diff) |
fixed couple of bugs
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@386 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index 9518725..2201af9 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1649,6 +1649,7 @@ void respond(struct request *rq, uint8_t code, char *message) { radmsg_free(rq->msg); rq->msg = msg; debug(DBG_DBG, "respond: sending %s to %s", radmsgtype2string(msg->code), rq->from->conf->host); + rq->refcount++; sendreply(rq); } @@ -1877,7 +1878,7 @@ int radsrv(struct request *rq) { rmclrqexit: rmclientrq(rq, msg->id); exit: - free(rq); + freerq(rq); free(userascii); return 1; } |