summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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>2008-04-05 15:40:05 +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>2008-04-05 15:40:05 +0000
commitb5025ffe4f5070a1c077ab865adc70b276a2204e (patch)
treedd56ac5ab63f1293893c5497a87f209ff915a286
parent7b73cdee6e372e27a96fc50d38232825e66f9e73 (diff)
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 <eric@inl.fr>
-rw-r--r--filter/ulogd_filter_IP2STR.c2
1 files changed, 1 insertions, 1 deletions
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: