diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2010-10-15 07:01:53 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-10-15 07:01:53 +0400 |
commit | b403bbb29ec63d127f91adbab956bad454564f0a (patch) | |
tree | 7f34968ddb08a334c078d9540aa5888eaa71ec99 /accel-pptpd/ppp/ccp_mppe.c | |
parent | cfabc95fbef19237057f42122898e7604307e1e7 (diff) | |
download | accel-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.c | 10 |
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; } |