summaryrefslogtreecommitdiff
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 15:09:45 +0400
commitd4ec7aa1e550b1e604cafa3080d43fd49e99c0cf (patch)
tree1056756e2271bccc57cc0448ac0597bb0258878d
parente6ef0ff6cecbc3aefd3b8259e049e7761f9310ca (diff)
downloadaccel-ppp-1.7.tar.gz
accel-ppp-1.7.zip
auth: do not decrement id on retransmit1.7
-rw-r--r--accel-pppd/auth/auth_chap_md5.c4
-rw-r--r--accel-pppd/auth/auth_mschap_v1.c4
-rw-r--r--accel-pppd/auth/auth_mschap_v2.c4
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 9abf8ce4..632a2835 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)
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)
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)
diff --git a/accel-pppd/auth/auth_mschap_v2.c b/accel-pppd/auth/auth_mschap_v2.c
index 7e5ed558..cc828ae5 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)
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)