diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-06-02 01:38:33 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-06-02 01:38:33 +0200 |
commit | 4122928416f0cb32300a756c21ef9bc13311e015 (patch) | |
tree | f96f247435fafe38b82374b4386831bf232d631e /filter/ulogd_filter_IP2STR.c | |
parent | 66c0ebb31d976b5d1b0b8ab7242918165927ca32 (diff) |
cleanup for key builder and fix IPv6 support and introduce 128-bits type
This patch cleans up the key building by breaking lines at 80 columns and
it fixes the IPv6 support (use of a pointer after free) by introducing a new
128 bit type.
Diffstat (limited to 'filter/ulogd_filter_IP2STR.c')
-rw-r--r-- | filter/ulogd_filter_IP2STR.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/ulogd_filter_IP2STR.c b/filter/ulogd_filter_IP2STR.c index e4ec06d..9ad3b81 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).ui128, tmp, sizeof(tmp)); break; case AF_INET: |