|
@@ -161,8 +161,8 @@ static bool sctp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff,
|
|
|
const struct sctphdr *hp;
|
|
|
struct sctphdr _hdr;
|
|
|
|
|
|
- /* Actually only need first 8 bytes. */
|
|
|
- hp = skb_header_pointer(skb, dataoff, 8, &_hdr);
|
|
|
+ /* Actually only need first 4 bytes to get ports. */
|
|
|
+ hp = skb_header_pointer(skb, dataoff, 4, &_hdr);
|
|
|
if (hp == NULL)
|
|
|
return false;
|
|
|
|