]> err.no Git - linux-2.6/blobdiff - net/netfilter/xt_sctp.c
[SCTP]: Netfilter sctp annotations.
[linux-2.6] / net / netfilter / xt_sctp.c
index 7956acaaa24bffa7795c1d1ac6324117489a29b5..71bf036f833c60ce433e0a20de3bd50561160aec 100644 (file)
@@ -71,7 +71,7 @@ match_packet(const struct sk_buff *skb,
                duprintf("Chunk num: %d\toffset: %d\ttype: %d\tlength: %d\tflags: %x\n", 
                                ++i, offset, sch->type, htons(sch->length), sch->flags);
 
-               offset += (htons(sch->length) + 3) & ~3;
+               offset += (ntohs(sch->length) + 3) & ~3;
 
                duprintf("skb->len: %d\toffset: %d\n", skb->len, offset);