tcp_respond(): fix assertion, should have been done in 08d9c92027.

This commit is contained in:
Gleb Smirnoff 2021-04-16 15:19:26 -07:00
parent d4cdb68049
commit 86046cf55f

View File

@ -1612,7 +1612,7 @@ tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m,
* Packet is associated with a socket, so allow the
* label of the response to reflect the socket label.
*/
INP_WLOCK_ASSERT(inp);
INP_LOCK_ASSERT(inp);
mac_inpcb_create_mbuf(inp, m);
} else {
/*