From 65f2298febf36bb3d939b633837df8fa86d94fb5 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Mon, 9 Oct 2017 16:44:47 +0300 Subject: ppp_lcp: fixed missing braces (possible bug) --- accel-pppd/ppp/ppp_lcp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'accel-pppd') diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c index 107e29e5..635ce9c0 100644 --- a/accel-pppd/ppp/ppp_lcp.c +++ b/accel-pppd/ppp/ppp_lcp.c @@ -817,10 +817,11 @@ static void lcp_recv(struct ppp_handler_t*h) case CONFACK: if (lcp_recv_conf_ack(lcp,(uint8_t*)(hdr + 1), ntohs(hdr->len) - PPP_HDRLEN)) ap_session_terminate(&lcp->ppp->ses, TERM_USER_ERROR, 0); - else + else { if (lcp->fsm.recv_id != lcp->fsm.id) break; ppp_fsm_recv_conf_ack(&lcp->fsm); + } break; case CONFNAK: lcp_recv_conf_nak(lcp, (uint8_t*)(hdr + 1), ntohs(hdr->len) - PPP_HDRLEN); @@ -831,10 +832,11 @@ static void lcp_recv(struct ppp_handler_t*h) case CONFREJ: if (lcp_recv_conf_rej(lcp,(uint8_t*)(hdr + 1), ntohs(hdr->len) - PPP_HDRLEN)) ap_session_terminate(&lcp->ppp->ses, TERM_USER_ERROR, 0); - else + else { if (lcp->fsm.recv_id != lcp->fsm.id) break; ppp_fsm_recv_conf_rej(&lcp->fsm); + } break; case TERMREQ: if (conf_ppp_verbose) -- cgit v1.2.3