Commit 017f77c0 authored by Jeremy Sowden's avatar Jeremy Sowden Committed by Pablo Neira Ayuso

netfilter: ipset: add a coding-style fix to ip_set_ext_destroy.

Use a local variable to hold comment in order to align the arguments of
ip_set_comment_free properly.
Signed-off-by: default avatarJeremy Sowden <jeremy@azazel.net>
Acked-by: default avatarJozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent fbe3d0c7
...@@ -269,9 +269,11 @@ ip_set_ext_destroy(struct ip_set *set, void *data) ...@@ -269,9 +269,11 @@ ip_set_ext_destroy(struct ip_set *set, void *data)
/* Check that the extension is enabled for the set and /* Check that the extension is enabled for the set and
* call it's destroy function for its extension part in data. * call it's destroy function for its extension part in data.
*/ */
if (SET_WITH_COMMENT(set)) if (SET_WITH_COMMENT(set)) {
ip_set_extensions[IPSET_EXT_ID_COMMENT].destroy( struct ip_set_comment *c = ext_comment(data, set);
set, ext_comment(data, set));
ip_set_extensions[IPSET_EXT_ID_COMMENT].destroy(set, c);
}
} }
static inline int static inline int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment