summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp/ccp_mppe.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-10-15 07:01:53 +0400
committerDmitry Kozlov <xeb@mail.ru>2010-10-15 07:01:53 +0400
commitb403bbb29ec63d127f91adbab956bad454564f0a (patch)
tree7f34968ddb08a334c078d9540aa5888eaa71ec99 /accel-pptpd/ppp/ccp_mppe.c
parentcfabc95fbef19237057f42122898e7604307e1e7 (diff)
downloadaccel-ppp-xebd-b403bbb29ec63d127f91adbab956bad454564f0a.tar.gz
accel-ppp-xebd-b403bbb29ec63d127f91adbab956bad454564f0a.zip
fixed incorrect mppe negotiation
Diffstat (limited to 'accel-pptpd/ppp/ccp_mppe.c')
-rw-r--r--accel-pptpd/ppp/ccp_mppe.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/accel-pptpd/ppp/ccp_mppe.c b/accel-pptpd/ppp/ccp_mppe.c
index 695e62d..2f3e083 100644
--- a/accel-pptpd/ppp/ccp_mppe.c
+++ b/accel-pptpd/ppp/ccp_mppe.c
@@ -159,10 +159,14 @@ static int mppe_recv_conf_req(struct ppp_ccp_t *ccp, struct ccp_option_t *opt, u
} else
return CCP_OPT_REJ;
- if (setup_mppe_key(ccp->ppp->unit_fd, 1, mppe_opt->send_key))
- return CCP_OPT_REJ;
+ if (mppe_opt->mppe) {
+ if (setup_mppe_key(ccp->ppp->unit_fd, 1, mppe_opt->send_key))
+ return CCP_OPT_REJ;
+
+ decrease_mtu(ccp->ppp);
- decrease_mtu(ccp->ppp);
+ log_ppp_debug(" (mppe enabled)");
+ }
return CCP_OPT_ACK;
}