Merge tag 'upstream-4.9-rc1' of git://git.infradead.org/linux-ubifs
[linux-2.6-block.git] / net / netfilter / xt_sctp.c
index ef36a56a02c6881c58296b2bf45c4b99d3836456..4dedb96d1a067de6c9766017642e16f9b148d616 100644 (file)
@@ -68,7 +68,7 @@ match_packet(const struct sk_buff *skb,
                         ++i, offset, sch->type, htons(sch->length),
                         sch->flags);
 #endif
-               offset += WORD_ROUND(ntohs(sch->length));
+               offset += SCTP_PAD4(ntohs(sch->length));
 
                pr_debug("skb->len: %d\toffset: %d\n", skb->len, offset);