diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-07-11 14:29:41 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-07-11 14:29:41 +0400 |
commit | 1cc4499b0244ccd82c2f99d1a2c3ff6632bd5b40 (patch) | |
tree | 5378fc67421176d4a84551b8170e7f202937c6b2 /accel-pppd/auth | |
parent | 14f52df5c5a1175df68142cc191a60901b63d63b (diff) | |
download | accel-ppp-1cc4499b0244ccd82c2f99d1a2c3ff6632bd5b40.tar.gz accel-ppp-1cc4499b0244ccd82c2f99d1a2c3ff6632bd5b40.zip |
auth: do not decrement id on retransmit
Diffstat (limited to 'accel-pppd/auth')
-rw-r--r-- | accel-pppd/auth/auth_chap_md5.c | 4 | ||||
-rw-r--r-- | accel-pppd/auth/auth_mschap_v1.c | 4 | ||||
-rw-r--r-- | accel-pppd/auth/auth_mschap_v2.c | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/accel-pppd/auth/auth_chap_md5.c b/accel-pppd/auth/auth_chap_md5.c index f843b92e..9a52581c 100644 --- a/accel-pppd/auth/auth_chap_md5.c +++ b/accel-pppd/auth/auth_chap_md5.c @@ -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) diff --git a/accel-pppd/auth/auth_mschap_v1.c b/accel-pppd/auth/auth_mschap_v1.c index 7ae0ab3b..1576c837 100644 --- a/accel-pppd/auth/auth_mschap_v1.c +++ b/accel-pppd/auth/auth_mschap_v1.c @@ -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) diff --git a/accel-pppd/auth/auth_mschap_v2.c b/accel-pppd/auth/auth_mschap_v2.c index 1d3aed9c..29f37495 100644 --- a/accel-pppd/auth/auth_mschap_v2.c +++ b/accel-pppd/auth/auth_mschap_v2.c @@ -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) |