From 4811a00e27ebd4a708caafde5a04dba848325cd1 Mon Sep 17 00:00:00 2001 From: kolla Date: Fri, 3 Apr 2009 09:50:49 +0000 Subject: Individual messages per msg type git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@499 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/radsecproxy.c b/radsecproxy.c index 28ee2e0..2ec1f36 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1676,9 +1676,13 @@ void replyh(struct server *server, unsigned char *buf) { if (ttlres == -1 && (options.addttl || from->conf->addttl)) addttlattr(msg, options.ttlattrtype, from->conf->addttl ? from->conf->addttl : options.addttl); - if (msg->code == RAD_Access_Accept || msg->code == RAD_Access_Reject || msg->code == RAD_Accounting_Response) - debug(DBG_WARN, "replyh: passing reply to client %s (%s)", from->conf->name, addr2string(from->addr)); - else + if (msg->code == RAD_Access_Accept) + debug(DBG_WARN, "replyh: passing Access_Accept to client %s (%s)", from->conf->name, addr2string(from->addr)); + else if (msg->code == RAD_Access_Reject) + debug(DBG_WARN, "replyh: passing Access_Reject to client %s (%s)", from->conf->name, addr2string(from->addr)); + else if (msg->code == RAD_Accounting_Response) + debug(DBG_WARN, "replyh: passing Accounting_Response to client %s (%s)", from->conf->name, addr2string(from->addr)); + else debug(DBG_INFO, "replyh: passing reply to client %s (%s)", from->conf->name, addr2string(from->addr)); radmsg_free(rqout->rq->msg); -- cgit v1.1