summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2010-10-22 18:40:39 +0400
committerKozlov Dmitry <xeb@mail.ru>2010-10-22 18:42:09 +0400
commit86618cc5cc67e174cfda59f2ed6a8635e4333fb9 (patch)
treed884e571654027593297352e8cd06c81eec26ddb
parentb61784a785b48429fe0a75fbcbb9d867eee509f5 (diff)
downloadaccel-ppp-86618cc5cc67e174cfda59f2ed6a8635e4333fb9.tar.gz
accel-ppp-86618cc5cc67e174cfda59f2ed6a8635e4333fb9.zip
ppp: fixed incorrect configure-nak handling
-rw-r--r--accel-pptpd/ppp/ppp_ipcp.c2
-rw-r--r--accel-pptpd/ppp/ppp_lcp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/accel-pptpd/ppp/ppp_ipcp.c b/accel-pptpd/ppp/ppp_ipcp.c
index fe5b39d..616714c 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 bd04f54..0ea05ba 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;
}