提交 65f2298f 编写于 作者: D Dmitry Kozlov

ppp_lcp: fixed missing braces (possible bug)

上级 08e048a7
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册