From d4ec7aa1e550b1e604cafa3080d43fd49e99c0cf 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_mschap_v1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'accel-pppd/auth/auth_mschap_v1.c') diff --git a/accel-pppd/auth/auth_mschap_v1.c b/accel-pppd/auth/auth_mschap_v1.c index 014a7276..9648e0b6 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) ppp_terminate(d->ppp, 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