diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2010-10-22 18:40:39 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2010-10-22 18:42:09 +0400 |
commit | 86618cc5cc67e174cfda59f2ed6a8635e4333fb9 (patch) | |
tree | d884e571654027593297352e8cd06c81eec26ddb | |
parent | b61784a785b48429fe0a75fbcbb9d867eee509f5 (diff) | |
download | accel-ppp-86618cc5cc67e174cfda59f2ed6a8635e4333fb9.tar.gz accel-ppp-86618cc5cc67e174cfda59f2ed6a8635e4333fb9.zip |
ppp: fixed incorrect configure-nak handling
-rw-r--r-- | accel-pptpd/ppp/ppp_ipcp.c | 2 | ||||
-rw-r--r-- | 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; } |