summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-08-01 00:05:45 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-08-01 00:05:45 +0200
commitfa4eb049a549dfdd48a8f59ef2713694716a6811 (patch)
treeab067ee41acfe6cd5b6c3601ae627b6c03ab72a8 /src/cache.c
parent21aabc2c4248d389fbf18a9110443371cc678b53 (diff)
downloadconntrack-tools-fa4eb049a549dfdd48a8f59ef2713694716a6811.tar.gz
conntrack-tools-fa4eb049a549dfdd48a8f59ef2713694716a6811.zip
add more sanity checks in the input path
Some users have reported crashes when nf_conntrack_ipv6 was not present. This patch performs more robust sanity checks in the input path. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/cache.c b/src/cache.c
index c72afd8..a73854f 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -75,14 +75,6 @@ static uint32_t hash(const void *data, struct hashtable *table)
ret = __hash4(u->ct, table);
break;
case AF_INET6:
- if (!nfct_attr_is_set(u->ct, ATTR_ORIG_IPV6_SRC) ||
- !nfct_attr_is_set(u->ct, ATTR_ORIG_IPV6_DST)) {
- dlog(LOG_ERR, "missing IPv6 address. "
- "You forgot to load "
- "nf_conntrack_ipv6?");
- return 0;
- }
-
ret = __hash6(u->ct, table);
break;
default: