From 1cc4499b0244ccd82c2f99d1a2c3ff6632bd5b40 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 11 Jul 2014 14:29:41 +0400 Subject: auth: do not decrement id on retransmit --- accel-pppd/auth/auth_chap_md5.c | 4 +--- accel-pppd/auth/auth_mschap_v1.c | 4 +--- 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) -- cgit v1.2.3