File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ static int dccp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
618
618
by tcp. Feel free to propose better solution.
619
619
--ANK (980728)
620
620
*/
621
- if (np -> rxopt .all )
621
+ if (np -> rxopt .all && sk -> sk_state != DCCP_LISTEN )
622
622
opt_skb = skb_clone_and_charge_r (skb , sk );
623
623
624
624
if (sk -> sk_state == DCCP_OPEN ) { /* Fast path */
Original file line number Diff line number Diff line change @@ -1618,7 +1618,7 @@ int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
1618
1618
by tcp. Feel free to propose better solution.
1619
1619
--ANK (980728)
1620
1620
*/
1621
- if (np -> rxopt .all )
1621
+ if (np -> rxopt .all && sk -> sk_state != TCP_LISTEN )
1622
1622
opt_skb = skb_clone_and_charge_r (skb , sk );
1623
1623
1624
1624
if (sk -> sk_state == TCP_ESTABLISHED ) { /* Fast path */
@@ -1656,8 +1656,6 @@ int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
1656
1656
if (reason )
1657
1657
goto reset ;
1658
1658
}
1659
- if (opt_skb )
1660
- __kfree_skb (opt_skb );
1661
1659
return 0 ;
1662
1660
}
1663
1661
} else
You can’t perform that action at this time.
0 commit comments