summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2017-02-27 23:42:03 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-02-28 00:55:29 +0100
commite6ca6739cc136d05ec3d13dbf82cdee247bee1d9 (patch)
tree4bd5dffe68b5386569999a9297b63e8f8fbf5c4d /src/rule.c
parentfb2d2de9fecf169ce23add590eb9a64b80a889a9 (diff)
src: store byteorder for set data
Add new UDATA_SET_DATABYTEORDER attribute for NFTA_SET_UDATA to store the datatype byteorder. This is required if integer_type is used on the rhs of the mapping given that this datatype comes with no specific byteorder. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r--src/rule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rule.c b/src/rule.c
index 60457477..f5ff1103 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -211,6 +211,8 @@ void set_free(struct set *set)
expr_free(set->init);
handle_free(&set->handle);
set_datatype_destroy(set->keytype);
+ if (set->datatype)
+ set_datatype_destroy(set->datatype);
xfree(set);
}