commit | 4195f81453b9727f82bb8ceae03411b7fe52a994 | [log] [tgz] |
---|---|---|
author | Alexey Dobriyan <adobriyan@gmail.com> | Mon May 22 16:53:22 2006 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon May 22 16:53:22 2006 -0700 |
tree | 061d410408c883058afbbbbc39b4276ac359dc03 | |
parent | ae181bc44c65fdc93d0d2d908534b22e43f60f56 [diff] [blame] |
[NET]: Fix "ntohl(ntohs" bugs Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index cd810f41..95278b2 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c
@@ -210,7 +210,7 @@ skb->h.icmph->code != ICMP_FRAG_NEEDED) return; - spi = ntohl(ntohs(ipch->cpi)); + spi = htonl(ntohs(ipch->cpi)); x = xfrm_state_lookup((xfrm_address_t *)&iph->daddr, spi, IPPROTO_COMP, AF_INET); if (!x)