summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipcomp.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-05-23 01:53:22 +0200
committerDavid S. Miller <davem@davemloft.net>2006-05-23 01:53:22 +0200
commit4195f81453b9727f82bb8ceae03411b7fe52a994 (patch)
tree061d410408c883058afbbbbc39b4276ac359dc03 /net/ipv4/ipcomp.c
parent[BNX2]: Use kmalloc instead of array (diff)
downloadlinux-4195f81453b9727f82bb8ceae03411b7fe52a994.tar.xz
linux-4195f81453b9727f82bb8ceae03411b7fe52a994.zip
[NET]: Fix "ntohl(ntohs" bugs
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipcomp.c')
-rw-r--r--net/ipv4/ipcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c
index cd810f41af1a..95278b22b669 100644
--- a/net/ipv4/ipcomp.c
+++ b/net/ipv4/ipcomp.c
@@ -210,7 +210,7 @@ static void ipcomp4_err(struct sk_buff *skb, u32 info)
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)