Assert the inpcb lock before letting MAC check whether we can deliver

to the inpcb in tcp_input().
This commit is contained in:
Robert Watson 2004-06-20 20:17:29 +00:00
parent 1b83216eda
commit 1f82efb3b7
2 changed files with 2 additions and 0 deletions

View file

@ -750,6 +750,7 @@ findpcb:
tiwin = th->th_win;
#ifdef MAC
INP_LOCK_ASSERT(inp);
if (mac_check_inpcb_deliver(inp, m))
goto drop;
#endif

View file

@ -750,6 +750,7 @@ findpcb:
tiwin = th->th_win;
#ifdef MAC
INP_LOCK_ASSERT(inp);
if (mac_check_inpcb_deliver(inp, m))
goto drop;
#endif