summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-11-07 00:43:36 +0300
committerDmitry Kozlov <xeb@mail.ru>2010-11-07 00:43:36 +0300
commit91df4499ccb1642c449c632ebc5a74ba7d5c7fd2 (patch)
treec066ec2ae80b7e550103f96407c5a6d5fb0d99e9 /accel-pptpd/ppp
parentab309f4568da0b6b64952e082a0f7d4cb1b028f8 (diff)
downloadaccel-ppp-91df4499ccb1642c449c632ebc5a74ba7d5c7fd2.tar.gz
accel-ppp-91df4499ccb1642c449c632ebc5a74ba7d5c7fd2.zip
chap-secrets: support the rate limit of session (in kilobits) at fifth column
Diffstat (limited to 'accel-pptpd/ppp')
-rw-r--r--accel-pptpd/ppp/ccp_mppe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/ppp/ccp_mppe.c b/accel-pptpd/ppp/ccp_mppe.c
index 9235d85..0952aa0 100644
--- a/accel-pptpd/ppp/ccp_mppe.c
+++ b/accel-pptpd/ppp/ccp_mppe.c
@@ -198,7 +198,7 @@ static int mppe_recv_conf_nak(struct ppp_ccp_t *ccp, struct ccp_option_t *opt, u
if (ntohl(opt32->val) == (MPPE_S | MPPE_H))
return -1;
} else if (mppe_opt->policy == 1) {
- if (ntohl(opt32->val) & (MPPE_S | MPPE_H) == (MPPE_S | MPPE_H))
+ if ((ntohl(opt32->val) & (MPPE_S | MPPE_H)) == (MPPE_S | MPPE_H))
mppe_opt->mppe = 0;
else
mppe_opt->mppe = 1;