summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/req.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-08-29 11:40:34 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-08-29 11:40:34 +0400
commit28df233a46f2d136e8169d86ee62861a7c024eff (patch)
treea8d1131645c7f09fa276208895b31a5b3b2467bc /accel-pppd/radius/req.c
parent1872dd97822f406a2d54bd75ed8220092ec5d4fb (diff)
downloadaccel-ppp-28df233a46f2d136e8169d86ee62861a7c024eff.tar.gz
accel-ppp-28df233a46f2d136e8169d86ee62861a7c024eff.zip
add 'ppp' filed to CTRL to identify ppp sessions
Diffstat (limited to 'accel-pppd/radius/req.c')
-rw-r--r--accel-pppd/radius/req.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c
index cd9a170b..a93c12e1 100644
--- a/accel-pppd/radius/req.c
+++ b/accel-pppd/radius/req.c
@@ -29,7 +29,7 @@ static struct rad_req_t *__rad_req_alloc(struct radius_pd_t *rpd, int code, cons
return NULL;
}
- if (rpd->ses->ctrl->type != CTRL_TYPE_IPOE)
+ if (rpd->ses->ctrl->ppp)
ppp = container_of(rpd->ses, typeof(*ppp), ses);
memset(req, 0, sizeof(*req));