diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-10-09 16:44:47 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-10-10 12:40:35 +0300 |
commit | 65f2298febf36bb3d939b633837df8fa86d94fb5 (patch) | |
tree | 8b2d834e78b41bfc1f59084974167c35f9d79e5f | |
parent | 08e048a76d1d566bf280e3c09d4d839ff40f7af7 (diff) | |
download | accel-ppp-65f2298febf36bb3d939b633837df8fa86d94fb5.tar.gz accel-ppp-65f2298febf36bb3d939b633837df8fa86d94fb5.zip |
ppp_lcp: fixed missing braces (possible bug)
-rw-r--r-- | accel-pppd/ppp/ppp_lcp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c index 107e29e..635ce9c 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) |