diff options
author | Linus Nordberg <linus@nordu.net> | 2011-04-05 11:24:10 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-04-05 11:24:10 +0200 |
commit | 480942e6cfcea8fd5f25c66d772186ba458a4fc7 (patch) | |
tree | 08159e1a7a808607cbc570e434d1275cb070af04 | |
parent | a5b826ba0b67a9d9cc2baa51036a9a86170f8af7 (diff) |
Do F-Ticks reporting only for Access-Accept and Access-Reject.
-rw-r--r-- | radsecproxy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index 69da4dc..5543bfa 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1666,6 +1666,9 @@ void replyh(struct server *server, unsigned char *buf) { } } + if (msg->code == RAD_Access_Accept || msg->code == RAD_Access_Reject) + fticks_log(&options, from, msg, rqout); + msg->id = (char)rqout->rq->rqid; memcpy(msg->auth, rqout->rq->rqauth, 16); @@ -1692,9 +1695,6 @@ void replyh(struct server *server, unsigned char *buf) { debug(msg->code == RAD_Access_Accept || msg->code == RAD_Access_Reject || msg->code == RAD_Accounting_Response ? DBG_WARN : DBG_INFO, "replyh: passing %s to client %s (%s)", radmsgtype2string(msg->code), from->conf->name, addr2string(from->addr)); - if (options.fticks_reporting && from->conf->fticks_viscountry != NULL) - fticks_log(&options, from, msg, rqout); - radmsg_free(rqout->rq->msg); rqout->rq->msg = msg; sendreply(newrqref(rqout->rq)); |