summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-11-11 00:24:19 +0300
committerDmitry Kozlov <xeb@mail.ru>2014-11-11 00:24:19 +0300
commit5a7474b41970e8cdf5ad98f7daa74814f5667a5e (patch)
tree05580739678d300be1e9a841c26e13297ffc6012
parent7763c6cfaecde4c9f1b47bf07966a88f6dd7d71b (diff)
downloadaccel-ppp-5a7474b41970e8cdf5ad98f7daa74814f5667a5e.tar.gz
accel-ppp-5a7474b41970e8cdf5ad98f7daa74814f5667a5e.zip
radius: add missing log_switch
-rw-r--r--accel-pppd/radius/serv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/radius/serv.c b/accel-pppd/radius/serv.c
index 58fc4349..718a3b2d 100644
--- a/accel-pppd/radius/serv.c
+++ b/accel-pppd/radius/serv.c
@@ -138,6 +138,9 @@ static void req_wakeup(struct rad_req_t *req)
static void req_wakeup_failed(struct rad_req_t *req)
{
+ if (!req->rpd)
+ log_switch(triton_context_self(), NULL);
+
req->send(req, -1);
}