]> err.no Git - linux-2.6/blobdiff - net/ipv6/tcp_ipv6.c
bridge: fix compile warning in net/bridge/br_netfilter.c
[linux-2.6] / net / ipv6 / tcp_ipv6.c
index 1bcdcbc71d680278f8fefbc51b51815ba264a220..78185a409212d5476fcf855defbda0b41939adaf 100644 (file)
@@ -748,7 +748,7 @@ static int tcp_v6_md5_hash_pseudoheader(struct tcp_md5sig_pool *hp,
        ipv6_addr_copy(&bp->saddr, saddr);
        ipv6_addr_copy(&bp->daddr, daddr);
        bp->protocol = cpu_to_be32(IPPROTO_TCP);
-       bp->len = cpu_to_be16(nbytes);
+       bp->len = cpu_to_be32(nbytes);
 
        sg_init_one(&sg, bp, sizeof(*bp));
        return crypto_hash_update(&hp->md5_desc, &sg, sizeof(*bp));