summaryrefslogtreecommitdiff
path: root/accel-pptpd/radius/req.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-09-13 01:19:42 +0400
committerDmitry Kozlov <xeb@mail.ru>2010-09-13 01:19:42 +0400
commitf39fda2ddb7a8b80a33f155994f27794dd84a198 (patch)
tree1e13a8f658504a0f0e4f1cd2a0cf26d9f0d1dcec /accel-pptpd/radius/req.c
parent65a665f6c655766a6d990e8aba47a811d0c3fecc (diff)
downloadaccel-ppp-f39fda2ddb7a8b80a33f155994f27794dd84a198.tar.gz
accel-ppp-f39fda2ddb7a8b80a33f155994f27794dd84a198.zip
log_pgsql: fixed bug - msg->tpd is uninitialized when general_log is called
radius: upgraded dictionary to support vendor-specific
Diffstat (limited to 'accel-pptpd/radius/req.c')
-rw-r--r--accel-pptpd/radius/req.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pptpd/radius/req.c b/accel-pptpd/radius/req.c
index 4a7ac432..e6f29c53 100644
--- a/accel-pptpd/radius/req.c
+++ b/accel-pptpd/radius/req.c
@@ -50,7 +50,7 @@ struct rad_req_t *rad_req_alloc(struct radius_pd_t *rpd, int code, const char *u
if (conf_nas_identifier)
if (rad_packet_add_str(req->pack, "NAS-Identifier", conf_nas_identifier, strlen(conf_nas_identifier)))
goto out_err;
- if (rad_packet_add_int(req->pack, "NAS-Port-Id", rpd->ppp->unit_idx))
+ if (rad_packet_add_int(req->pack, "NAS-Port", rpd->ppp->unit_idx))
goto out_err;
if (rad_packet_add_val(req->pack, "NAS-Port-Type", "Virtual"))
goto out_err;
@@ -73,6 +73,8 @@ int rad_req_acct_fill(struct rad_req_t *req)
memset(req->RA, 0, sizeof(req->RA));
+ if (rad_packet_add_val(req->pack, "Acct-Authentic", "RADIUS"))
+ return -1;
if (rad_packet_add_val(req->pack, "Acct-Status-Type", "Start"))
return -1;
if (rad_packet_add_str(req->pack, "Acct-Session-Id", req->rpd->ppp->sessionid, PPP_SESSIONID_LEN))