We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d1b009 commit d729ef2Copy full SHA for d729ef2
net/sctp/input.c
@@ -114,7 +114,7 @@ int sctp_rcv(struct sk_buff *skb)
114
* it's better to just linearize it otherwise crc computing
115
* takes longer.
116
*/
117
- if ((!is_gso && skb_linearize(skb)) ||
+ if (((!is_gso || skb_cloned(skb)) && skb_linearize(skb)) ||
118
!pskb_may_pull(skb, sizeof(struct sctphdr)))
119
goto discard_it;
120
0 commit comments