diff options
-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)); |