From 86618cc5cc67e174cfda59f2ed6a8635e4333fb9 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Fri, 22 Oct 2010 18:40:39 +0400 Subject: ppp: fixed incorrect configure-nak handling --- accel-pptpd/ppp/ppp_ipcp.c | 2 +- accel-pptpd/ppp/ppp_lcp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accel-pptpd/ppp/ppp_ipcp.c b/accel-pptpd/ppp/ppp_ipcp.c index fe5b39d6..616714ce 100644 --- a/accel-pptpd/ppp/ppp_ipcp.c +++ b/accel-pptpd/ppp/ppp_ipcp.c @@ -454,7 +454,7 @@ static int ipcp_recv_conf_nak(struct ppp_ipcp_t *ipcp, uint8_t *data, int size) log_ppp_info(" "); lopt->h->print(log_ppp_info,lopt,data); } - if (lopt->h->recv_conf_nak(ipcp, lopt, data)) + if (lopt->h->recv_conf_nak && lopt->h->recv_conf_nak(ipcp, lopt, data)) res =- 1; break; } diff --git a/accel-pptpd/ppp/ppp_lcp.c b/accel-pptpd/ppp/ppp_lcp.c index bd04f541..0ea05ba1 100644 --- a/accel-pptpd/ppp/ppp_lcp.c +++ b/accel-pptpd/ppp/ppp_lcp.c @@ -495,7 +495,7 @@ static int lcp_recv_conf_nak(struct ppp_lcp_t *lcp, uint8_t *data, int size) log_ppp_info(" "); lopt->h->print(log_ppp_info, lopt, data); } - if (lopt->h->recv_conf_nak(lcp, lopt, data)) + if (lopt->h->recv_conf_nak && lopt->h->recv_conf_nak(lcp, lopt, data)) res = -1; break; } -- cgit v1.2.3