diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-23 15:21:05 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-23 15:21:05 +0100 |
commit | 87a0dfec43336ed957a414a1cb5e02239e04a9b8 (patch) | |
tree | 005b4d651148f5cf5f932025b61b9d42d866925c /src/conntrack/getter.c | |
parent | 82c9c883859979ac7dc01dcb8d1870117e865ebe (diff) |
src: set specific array size for the API
This patch adds the size of the arrays to set to NULL unset
elements. This helps to spot unset functions for new attributes.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/conntrack/getter.c')
-rw-r--r-- | src/conntrack/getter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conntrack/getter.c b/src/conntrack/getter.c index 658d010..65661d4 100644 --- a/src/conntrack/getter.c +++ b/src/conntrack/getter.c @@ -287,7 +287,7 @@ static const void *get_attr_helper_name(const struct nf_conntrack *ct) return ct->helper_name; } -get_attr get_attr_array[] = { +get_attr get_attr_array[ATTR_MAX] = { [ATTR_ORIG_IPV4_SRC] = get_attr_orig_ipv4_src, [ATTR_ORIG_IPV4_DST] = get_attr_orig_ipv4_dst, [ATTR_REPL_IPV4_SRC] = get_attr_repl_ipv4_src, |