summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-12-23 01:33:25 +0300
committerDmitry Kozlov <xeb@mail.ru>2010-12-23 01:33:25 +0300
commitb398bf9a8adc7c98f22473fba9c839bbe8f1f7f6 (patch)
tree235c5fa3d6d60dcd45fb873d59a82c55a38bd87d
parenta4c8dd27efa38c5e0a5be2e067e02ebfe207629a (diff)
downloadaccel-ppp-b398bf9a8adc7c98f22473fba9c839bbe8f1f7f6.tar.gz
accel-ppp-b398bf9a8adc7c98f22473fba9c839bbe8f1f7f6.zip
ppp: if no lcp response terminate session hard
-rw-r--r--accel-pptpd/ppp/ppp_lcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/ppp/ppp_lcp.c b/accel-pptpd/ppp/ppp_lcp.c
index bf5ab7a..de38426 100644
--- a/accel-pptpd/ppp/ppp_lcp.c
+++ b/accel-pptpd/ppp/ppp_lcp.c
@@ -613,7 +613,7 @@ static void send_echo_request(struct triton_timer_t *t)
if (++lcp->echo_sent > lcp->echo_failure) {
log_ppp_warn("lcp: no echo reply\n");
- ppp_terminate(lcp->ppp, TERM_USER_ERROR, 0);
+ ppp_terminate(lcp->ppp, TERM_USER_ERROR, 1);
} else {
if (conf_ppp_verbose)
log_ppp_debug("send [LCP EchoReq id=%x <magic %x>]\n", msg.hdr.id, msg.magic);