diff options
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r-- | net/sctp/input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index 2e4a8646dbc3..693fd0804810 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -142,7 +142,8 @@ int sctp_rcv(struct sk_buff *skb) | |||
142 | __skb_pull(skb, skb_transport_offset(skb)); | 142 | __skb_pull(skb, skb_transport_offset(skb)); |
143 | if (skb->len < sizeof(struct sctphdr)) | 143 | if (skb->len < sizeof(struct sctphdr)) |
144 | goto discard_it; | 144 | goto discard_it; |
145 | if (!skb_csum_unnecessary(skb) && sctp_rcv_checksum(skb) < 0) | 145 | if (!sctp_checksum_disable && !skb_csum_unnecessary(skb) && |
146 | sctp_rcv_checksum(skb) < 0) | ||
146 | goto discard_it; | 147 | goto discard_it; |
147 | 148 | ||
148 | skb_pull(skb, sizeof(struct sctphdr)); | 149 | skb_pull(skb, sizeof(struct sctphdr)); |