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 @@ -616,7 +616,7 @@ static int dccp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
616
616
by tcp. Feel free to propose better solution.
617
617
--ANK (980728)
618
618
*/
619
- if (np -> rxopt .all )
619
+ if (np -> rxopt .all && sk -> sk_state != DCCP_LISTEN )
620
620
opt_skb = skb_clone_and_charge_r (skb , sk );
621
621
622
622
if (sk -> sk_state == DCCP_OPEN ) { /* Fast path */
Original file line number Diff line number Diff line change @@ -1456,7 +1456,7 @@ int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
1456
1456
by tcp. Feel free to propose better solution.
1457
1457
--ANK (980728)
1458
1458
*/
1459
- if (np -> rxopt .all )
1459
+ if (np -> rxopt .all && sk -> sk_state != TCP_LISTEN )
1460
1460
opt_skb = skb_clone_and_charge_r (skb , sk );
1461
1461
1462
1462
reason = SKB_DROP_REASON_NOT_SPECIFIED ;
@@ -1495,8 +1495,6 @@ int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
1495
1495
if (nsk != sk ) {
1496
1496
if (tcp_child_process (sk , nsk , skb ))
1497
1497
goto reset ;
1498
- if (opt_skb )
1499
- __kfree_skb (opt_skb );
1500
1498
return 0 ;
1501
1499
}
1502
1500
} else
You can’t perform that action at this time.
0 commit comments