提交 02cdfe60 编写于 作者: D Dmitry Kozlov

ppp: fixed incorrect session termination if authentication failed

上级 1cfae521
......@@ -397,7 +397,7 @@ void __export ppp_layer_finished(struct ppp_t *ppp, struct ppp_layer_data_t *d)
list_for_each_entry(n, &ppp->layers, entry) {
list_for_each_entry(d, &n->items, entry) {
if (!d->finished)
if (d->starting && !d->finished)
return;
}
}
......
......@@ -119,8 +119,8 @@ static void rad_acct_timeout(struct triton_timer_t *t)
dt = ts - req->rpd->acct_timestamp;
if (dt > conf_acct_timeout) {
log_ppp_warn("radius: acct: no response, terminating session...\n");
ppp_terminate(req->rpd->ppp, 0, TERM_NAS_ERROR);
log_ppp_warn("radius:acct: no response, terminating session...\n");
ppp_terminate(req->rpd->ppp, TERM_NAS_ERROR, 0);
return;
}
if (dt > conf_acct_timeout / 2) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册