提交 b96144da authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo
上级 73a7eabf
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#ifdef __FreeBSD__ #ifdef __FreeBSD__
#include <sys/cdefs.h> #include <sys/cdefs.h>
__FBSDID("$FreeBSD: head/sys/netinet/sctp_input.c 353518 2019-10-14 20:32:11Z tuexen $"); __FBSDID("$FreeBSD: head/sys/netinet/sctp_input.c 355135 2019-11-27 19:32:29Z tuexen $");
#endif #endif
#include <netinet/sctp_os.h> #include <netinet/sctp_os.h>
...@@ -526,6 +526,9 @@ sctp_process_init_ack(struct mbuf *m, int iphlen, int offset, ...@@ -526,6 +526,9 @@ sctp_process_init_ack(struct mbuf *m, int iphlen, int offset,
/* process the peer's parameters in the INIT-ACK */ /* process the peer's parameters in the INIT-ACK */
retval = sctp_process_init((struct sctp_init_chunk *)cp, stcb); retval = sctp_process_init((struct sctp_init_chunk *)cp, stcb);
if (retval < 0) { if (retval < 0) {
if (op_err != NULL) {
sctp_m_freem(op_err);
}
return (retval); return (retval);
} }
initack_limit = offset + ntohs(cp->ch.chunk_length); initack_limit = offset + ntohs(cp->ch.chunk_length);
...@@ -533,6 +536,9 @@ sctp_process_init_ack(struct mbuf *m, int iphlen, int offset, ...@@ -533,6 +536,9 @@ sctp_process_init_ack(struct mbuf *m, int iphlen, int offset,
if ((retval = sctp_load_addresses_from_init(stcb, m, if ((retval = sctp_load_addresses_from_init(stcb, m,
(offset + sizeof(struct sctp_init_chunk)), initack_limit, (offset + sizeof(struct sctp_init_chunk)), initack_limit,
src, dst, NULL, stcb->asoc.port))) { src, dst, NULL, stcb->asoc.port))) {
if (op_err != NULL) {
sctp_m_freem(op_err);
}
op_err = sctp_generate_cause(SCTP_BASE_SYSCTL(sctp_diag_info_code), op_err = sctp_generate_cause(SCTP_BASE_SYSCTL(sctp_diag_info_code),
"Problem with address parameters"); "Problem with address parameters");
SCTPDBG(SCTP_DEBUG_INPUT1, SCTPDBG(SCTP_DEBUG_INPUT1,
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论