diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2010-10-28 01:02:37 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-10-28 01:02:37 +0400 |
commit | e1603a51f450ad7ee52fe89ef5d78b82845fdcc2 (patch) | |
tree | 02759aee4bbb3053bbc9c1be80af33585c356bda /accel-pptpd/radius/req.c | |
parent | 04a57e858bed078548c4c8715aa3d35ba81401ae (diff) | |
download | accel-ppp-xebd-e1603a51f450ad7ee52fe89ef5d78b82845fdcc2.tar.gz accel-ppp-xebd-e1603a51f450ad7ee52fe89ef5d78b82845fdcc2.zip |
radius: rewrited Termination-Action attribute handling so it is rfc compliant now
Diffstat (limited to 'accel-pptpd/radius/req.c')
-rw-r--r-- | accel-pptpd/radius/req.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pptpd/radius/req.c b/accel-pptpd/radius/req.c index a1156c3..f92d122 100644 --- a/accel-pptpd/radius/req.c +++ b/accel-pptpd/radius/req.c @@ -70,8 +70,8 @@ struct rad_req_t *rad_req_alloc(struct radius_pd_t *rpd, int code, const char *u if (rpd->ppp->ctrl->called_station_id) if (rad_packet_add_str(req->pack, "Called-Station-Id", rpd->ppp->ctrl->called_station_id, strlen(rpd->ppp->ctrl->called_station_id))) goto out_err; - if (rpd->class) - if (rad_packet_add_octets(req->pack, "Class", rpd->class, rpd->class_len)) + if (rpd->attr_class) + if (rad_packet_add_octets(req->pack, "Class", rpd->attr_class, rpd->attr_class_len)) goto out_err; return req; |