diff options
| author | Michael Tuexen <tuexen@FreeBSD.org> | 2022-04-19 11:03:08 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2023-02-01 22:44:25 +0000 |
| commit | a162e6496a7ccd3a1a1b5caf276de915dc3a0e74 (patch) | |
| tree | 877e5f49452afdeb972ae47b10978429cf2fc599 /sys/netinet | |
| parent | 126767e314ccdc77c82b6f29aeda3b715b31683a (diff) | |
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/sctp_os_bsd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h index e8d08588fbfb..faca8a3b6276 100644 --- a/sys/netinet/sctp_os_bsd.h +++ b/sys/netinet/sctp_os_bsd.h @@ -428,9 +428,11 @@ typedef struct route sctp_route_t; \ m_clrprotoflags(o_pak); \ if (local_inp != NULL) { \ + INP_RLOCK(&local_inp->ip_inp.inp); \ result = ip6_output(o_pak, \ local_inp->ip_inp.inp.in6p_outputopts, \ (ro), 0, 0, ifp, NULL); \ + INP_RUNLOCK(&local_inp->ip_inp.inp); \ } else { \ result = ip6_output(o_pak, NULL, (ro), 0, 0, ifp, NULL); \ } \ |
