]> err.no Git - linux-2.6/commitdiff
[NETFILTER] ctnetlink: ICMP_ID is u_int16_t not u_int8_t.
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Wed, 9 Nov 2005 21:04:32 +0000 (13:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2005 21:04:32 +0000 (13:04 -0800)
Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_proto_icmp.c

index 083951e20690301027dfa45426397b6f5c441686..5198f3a1e2cd542b200d3d9e85f8243ef84b9a1a 100644 (file)
@@ -305,7 +305,7 @@ static int icmp_nfattr_to_tuple(struct nfattr *tb[],
        tuple->dst.u.icmp.code =
                        *(u_int8_t *)NFA_DATA(tb[CTA_PROTO_ICMP_CODE-1]);
        tuple->src.u.icmp.id =
-                       *(u_int8_t *)NFA_DATA(tb[CTA_PROTO_ICMP_ID-1]);
+                       *(u_int16_t *)NFA_DATA(tb[CTA_PROTO_ICMP_ID-1]);
 
        return 0;
 }