From a337b4af82fe30d568547aabc61df7bc67a8a835 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Mon, 4 Oct 2010 15:12:41 +0400 Subject: ppp: implemented mppe radius: implemented mppe support various improvements and bug fixes --- accel-pptpd/ppp/ipcp_opt_ipaddr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'accel-pptpd/ppp/ipcp_opt_ipaddr.c') diff --git a/accel-pptpd/ppp/ipcp_opt_ipaddr.c b/accel-pptpd/ppp/ipcp_opt_ipaddr.c index 963d4736..108e350c 100644 --- a/accel-pptpd/ppp/ipcp_opt_ipaddr.c +++ b/accel-pptpd/ppp/ipcp_opt_ipaddr.c @@ -104,6 +104,9 @@ static int ipaddr_recv_conf_req(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *o struct sockaddr_in addr; struct npioctl np; + if (opt32->hdr.len != 6) + return IPCP_OPT_REJ; + if (ipaddr_opt->ip->peer_addr == opt32->val) goto ack; -- cgit v1.2.3