diff options
Diffstat (limited to 'accel-pptpd/auth/auth_mschap_v1.c')
-rw-r--r-- | accel-pptpd/auth/auth_mschap_v1.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/accel-pptpd/auth/auth_mschap_v1.c b/accel-pptpd/auth/auth_mschap_v1.c index 5b4935ea..d1dccef0 100644 --- a/accel-pptpd/auth/auth_mschap_v1.c +++ b/accel-pptpd/auth/auth_mschap_v1.c @@ -171,7 +171,7 @@ static void chap_timeout(struct triton_timer_t *t) if (++d->failure == conf_max_failure) { if (d->started) - ppp_terminate(d->ppp, 0); + ppp_terminate(d->ppp, TERM_USER_ERROR, 0); else auth_failed(d->ppp); } else { @@ -281,7 +281,7 @@ static void chap_recv_response(struct chap_auth_data_t *ad, struct chap_hdr_t *h log_ppp_error("mschap-v1: id mismatch\n"); chap_send_failure(ad); if (ad->started) - ppp_terminate(ad->ppp, 0); + ppp_terminate(ad->ppp, TERM_USER_ERROR, 0); else auth_failed(ad->ppp); } @@ -290,7 +290,7 @@ static void chap_recv_response(struct chap_auth_data_t *ad, struct chap_hdr_t *h log_ppp_error("mschap-v1: incorrect value-size (%i)\n", msg->val_size); chap_send_failure(ad); if (ad->started) - ppp_terminate(ad->ppp, 0); + ppp_terminate(ad->ppp, TERM_AUTH_ERROR, 0); else auth_failed(ad->ppp); } @@ -299,7 +299,7 @@ static void chap_recv_response(struct chap_auth_data_t *ad, struct chap_hdr_t *h if (!name) { log_emerg("mschap-v1: out of memory\n"); if (ad->started) - ppp_terminate(ad->ppp, 0); + ppp_terminate(ad->ppp, TERM_NAS_ERROR, 0); else auth_failed(ad->ppp); return; @@ -312,7 +312,7 @@ static void chap_recv_response(struct chap_auth_data_t *ad, struct chap_hdr_t *h if (r == PWDB_DENIED) { chap_send_failure(ad); if (ad->started) - ppp_terminate(ad->ppp, 0); + ppp_terminate(ad->ppp, TERM_AUTH_ERROR, 0); else auth_failed(ad->ppp); _free(name); |