Skip to content

Commit

Permalink
[NETFILTER]: nf_conntrack_h323: fix get_h225_addr() for IPv6 address …
Browse files Browse the repository at this point in the history
…access

Update get_h225_addr() to meet the changes in ASN.1 types. It was using
field ip6 to access IPv6 TransportAddress, it should be ip according the
ASN.1 definition.

Signed-off-by: Jing Min Zhao <zhaojingmin@vivecode.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jing Min Zhao authored and David S. Miller committed May 24, 2007
1 parent d052918 commit bb80724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nf_conntrack_h323_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ int get_h225_addr(struct nf_conn *ct, unsigned char *data,
case eTransportAddress_ip6Address:
if (family != AF_INET6)
return 0;
p = data + taddr->ip6Address.ip6;
p = data + taddr->ip6Address.ip;
len = 16;
break;
default:
Expand Down

0 comments on commit bb80724

Please sign in to comment.