summaryrefslogtreecommitdiff
path: root/accel-pppd/auth/auth_mschap_v1.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-07-11 14:29:41 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-07-11 14:29:41 +0400
commit1cc4499b0244ccd82c2f99d1a2c3ff6632bd5b40 (patch)
tree5378fc67421176d4a84551b8170e7f202937c6b2 /accel-pppd/auth/auth_mschap_v1.c
parent14f52df5c5a1175df68142cc191a60901b63d63b (diff)
downloadaccel-ppp-xebd-1cc4499b0244ccd82c2f99d1a2c3ff6632bd5b40.tar.gz
accel-ppp-xebd-1cc4499b0244ccd82c2f99d1a2c3ff6632bd5b40.zip
auth: do not decrement id on retransmit
Diffstat (limited to 'accel-pppd/auth/auth_mschap_v1.c')
-rw-r--r--accel-pppd/auth/auth_mschap_v1.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/accel-pppd/auth/auth_mschap_v1.c b/accel-pppd/auth/auth_mschap_v1.c
index 7ae0ab3..1576c83 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)