summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp/ipcp_opt_dns.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/ipcp_opt_dns.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/ipcp_opt_dns.c')
-rw-r--r--accel-pptpd/ppp/ipcp_opt_dns.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pptpd/ppp/ipcp_opt_dns.c b/accel-pptpd/ppp/ipcp_opt_dns.c
index b0365da2..4c48fd4c 100644
--- a/accel-pptpd/ppp/ipcp_opt_dns.c
+++ b/accel-pptpd/ppp/ipcp_opt_dns.c
@@ -101,6 +101,9 @@ static int dns_recv_conf_req(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *opt,
struct dns_option_t *dns_opt=container_of(opt,typeof(*dns_opt),opt);
struct ipcp_opt32_t *opt32=(struct ipcp_opt32_t*)ptr;
+ if (opt32->hdr.len != 6)
+ return IPCP_OPT_REJ;
+
if (!dns_opt->addr)
{
if (dns_opt->opt.id == CI_DNS1 && conf_dns1) dns_opt->addr=conf_dns1;