mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Initialize the fibnum for outgoing packets to 0. This avoids
crashing due to the usage of uninitialized fibnum. This bugs became visiable after http://svnweb.freebsd.org/changeset/base/250700 MFC after: 2 weeks
This commit is contained in:
parent
b8501ae829
commit
e3581df21e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250809
@ -435,6 +435,7 @@ typedef struct rtentry sctp_rtentry_t;
|
||||
{ \
|
||||
int o_flgs = IP_RAWOUTPUT; \
|
||||
struct sctp_tcb *local_stcb = stcb; \
|
||||
M_SETFIB(o_pak, 0); \
|
||||
if (local_stcb && \
|
||||
local_stcb->sctp_ep && \
|
||||
local_stcb->sctp_ep->sctp_socket) \
|
||||
@ -445,6 +446,7 @@ typedef struct rtentry sctp_rtentry_t;
|
||||
#define SCTP_IP6_OUTPUT(result, o_pak, ro, ifp, stcb, vrf_id) \
|
||||
{ \
|
||||
struct sctp_tcb *local_stcb = stcb; \
|
||||
M_SETFIB(o_pak, 0); \
|
||||
if (local_stcb && local_stcb->sctp_ep) \
|
||||
result = ip6_output(o_pak, \
|
||||
((struct in6pcb *)(local_stcb->sctp_ep))->in6p_outputopts, \
|
||||
|
Loading…
Reference in New Issue
Block a user