From e4472e7ee5a2d493266800931593dbaa6ac0d56d Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Fri, 3 Aug 2012 16:35:00 +0400 Subject: ppp: don't drop connection when mppe=prefer and user rejects ccp Conflicts: accel-pppd/ppp/ppp_ccp.c --- accel-pppd/ppp/ccp_mppe.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'accel-pppd') diff --git a/accel-pppd/ppp/ccp_mppe.c b/accel-pppd/ppp/ccp_mppe.c index ae2b2ca..b24690b 100644 --- a/accel-pppd/ppp/ccp_mppe.c +++ b/accel-pppd/ppp/ccp_mppe.c @@ -82,6 +82,9 @@ static struct ccp_option_t *mppe_init(struct ppp_ccp_t *ccp) if (mppe == MPPE_REQUIRE) ccp->ld.optional = 0; + if (mppe == MPPE_REQUIRE) + ccp->ld.optional = 0; + mppe_opt->opt.id = CI_MPPE; mppe_opt->opt.len = 6; -- cgit v1.2.3