]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
An error in the type of an argument in the call to inet_ntop was causing IPv6
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>
Sat, 5 Apr 2008 15:40:05 +0000 (15:40 +0000)
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>
Sat, 5 Apr 2008 15:40:05 +0000 (15:40 +0000)
address to be transformed in a string not really related to the real Ipv6
address.

Signed-off-by: Eric Leblond <eric@inl.fr>
filter/ulogd_filter_IP2STR.c

index 9f36d603c91fb851fbbeb37a0faadf37ef0a8b8f..e4ec06d7e95e61c2bc11acfafbeebe425edcaad4 100644 (file)
@@ -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: