summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accel-pppd/ppp/ppp_lcp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c
index 2641cf34..107e29e5 100644
--- a/accel-pppd/ppp/ppp_lcp.c
+++ b/accel-pppd/ppp/ppp_lcp.c
@@ -792,9 +792,11 @@ static void lcp_recv(struct ppp_handler_t*h)
case CONFREQ:
r = lcp_recv_conf_req(lcp, (uint8_t*)(hdr + 1), ntohs(hdr->len) - PPP_HDRLEN);
if (lcp->started) {
- if (r == LCP_OPT_ACK)
+ if (r == LCP_OPT_ACK) {
send_conf_ack(&lcp->fsm);
- else
+ lcp_free_conf_req(lcp);
+ break;
+ } else
r = LCP_OPT_FAIL;
}
switch(r) {