mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Assert that the inpcb lock is held when calling tcp_output().
Approved by: hsu
This commit is contained in:
parent
7ba28492c5
commit
3d6ade3a03
1 changed files with 2 additions and 0 deletions
|
|
@ -128,6 +128,8 @@ tcp_output(struct tcpcb *tp)
|
|||
isipv6 = (tp->t_inpcb->inp_vflag & INP_IPV6) != 0;
|
||||
#endif
|
||||
|
||||
mtx_assert(&tp->t_inpcb->inp_mtx, MA_OWNED);
|
||||
|
||||
/*
|
||||
* Determine length of data that should be transmitted,
|
||||
* and flags that will be used.
|
||||
|
|
|
|||
Loading…
Reference in a new issue