Merge "tcp: fix use after free in tcp_xmit_retransmit_queue()"
This commit is contained in:
commit
065421c6fa
1 changed files with 2 additions and 0 deletions
|
@ -1528,6 +1528,8 @@ static inline void tcp_check_send_head(struct sock *sk, struct sk_buff *skb_unli
|
||||||
{
|
{
|
||||||
if (sk->sk_send_head == skb_unlinked)
|
if (sk->sk_send_head == skb_unlinked)
|
||||||
sk->sk_send_head = NULL;
|
sk->sk_send_head = NULL;
|
||||||
|
if (tcp_sk(sk)->highest_sack == skb_unlinked)
|
||||||
|
tcp_sk(sk)->highest_sack = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void tcp_init_send_head(struct sock *sk)
|
static inline void tcp_init_send_head(struct sock *sk)
|
||||||
|
|
Loading…
Add table
Reference in a new issue