summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-06-12 13:58:22 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-06-13 12:22:41 +0200
commit388361e75b00582898c75cb8b90e8a3a7c887990 (patch)
treee29bb941c3315ea940b363cb7fd8ff827f194469 /src
parent01a13882bb59a6960904a7a78ad608146a6dc510 (diff)
datatype: dtype_clone() should clone flags too
Clone original flags too. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/datatype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datatype.c b/src/datatype.c
index 43cf45bd..8ae3aa1c 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -1103,7 +1103,7 @@ static struct datatype *dtype_clone(const struct datatype *orig_dtype)
*dtype = *orig_dtype;
dtype->name = xstrdup(orig_dtype->name);
dtype->desc = xstrdup(orig_dtype->desc);
- dtype->flags = DTYPE_F_ALLOC;
+ dtype->flags = DTYPE_F_ALLOC | orig_dtype->flags;
dtype->refcnt = 0;
return dtype;