提交 1cc4499b 编写于 作者: D Dmitry Kozlov

auth: do not decrement id on retransmit

上级 14f52df5
......@@ -162,10 +162,8 @@ static void chap_timeout_timer(struct triton_timer_t *t)
ap_session_terminate(&d->ppp->ses, TERM_USER_ERROR, 0);
else
ppp_auth_failed(d->ppp, NULL);
} else {
--d->id;
} else
chap_send_challenge(d, 0);
}
}
static void chap_restart_timer(struct triton_timer_t *t)
......
......@@ -163,10 +163,8 @@ static void chap_timeout_timer(struct triton_timer_t *t)
ap_session_terminate(&d->ppp->ses, TERM_USER_ERROR, 0);
else
ppp_auth_failed(d->ppp, NULL);
} else {
--d->id;
} else
chap_send_challenge(d, 0);
}
}
static void chap_restart_timer(struct triton_timer_t *t)
......
......@@ -166,10 +166,8 @@ static void chap_timeout_timer(struct triton_timer_t *t)
ap_session_terminate(&d->ppp->ses, TERM_USER_ERROR, 0);
else
ppp_auth_failed(d->ppp, NULL);
} else {
--d->id;
} else
chap_send_challenge(d, 0);
}
}
static void chap_restart_timer(struct triton_timer_t *t)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册