summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp/lcp_opt_magic.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-04 15:12:41 +0400
committerKozlov Dmitry <dima@server>2010-10-04 15:12:41 +0400
commita337b4af82fe30d568547aabc61df7bc67a8a835 (patch)
tree140437e3f4282abb39b17606750ba9bb4123711a /accel-pptpd/ppp/lcp_opt_magic.c
parent06858ad4c7468ac8b226b34126b68db2128877f1 (diff)
downloadaccel-ppp-a337b4af82fe30d568547aabc61df7bc67a8a835.tar.gz
accel-ppp-a337b4af82fe30d568547aabc61df7bc67a8a835.zip
ppp: implemented mppe
radius: implemented mppe support various improvements and bug fixes
Diffstat (limited to 'accel-pptpd/ppp/lcp_opt_magic.c')
-rw-r--r--accel-pptpd/ppp/lcp_opt_magic.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/accel-pptpd/ppp/lcp_opt_magic.c b/accel-pptpd/ppp/lcp_opt_magic.c
index 166c85c..4a61ef9 100644
--- a/accel-pptpd/ppp/lcp_opt_magic.c
+++ b/accel-pptpd/ppp/lcp_opt_magic.c
@@ -64,8 +64,11 @@ static int magic_recv_conf_req(struct ppp_lcp_t *lcp, struct lcp_option_t *opt,
struct magic_option_t *magic_opt=container_of(opt,typeof(*magic_opt),opt);
struct lcp_opt32_t *opt32=(struct lcp_opt32_t*)ptr;
- if (!ptr)
- return LCP_OPT_NAK;
+ /*if (!ptr)
+ return LCP_OPT_NAK;*/
+
+ if (opt32->hdr.len != 6)
+ return LCP_OPT_REJ;
if (magic_opt->magic==ntohl(opt32->val))
{