From: /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org Date: Sat, 5 Apr 2008 15:40:05 +0000 (+0000) Subject: An error in the type of an argument in the call to inet_ntop was causing IPv6 X-Git-Tag: ulogd-2.0.0beta2~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5025ffe4f5070a1c077ab865adc70b276a2204e;p=thirdparty%2Fulogd2.git An error in the type of an argument in the call to inet_ntop was causing IPv6 address to be transformed in a string not really related to the real Ipv6 address. Signed-off-by: Eric Leblond --- diff --git a/filter/ulogd_filter_IP2STR.c b/filter/ulogd_filter_IP2STR.c index 9f36d60..e4ec06d 100644 --- a/filter/ulogd_filter_IP2STR.c +++ b/filter/ulogd_filter_IP2STR.c @@ -174,7 +174,7 @@ static char *ip2str(struct ulogd_key *inp, int index) switch (convfamily) { case AF_INET6: inet_ntop(AF_INET6, - &GET_VALUE(inp, index).ptr, + GET_VALUE(inp, index).ptr, tmp, sizeof(tmp)); break; case AF_INET: