summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-03-25 18:46:42 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-03-25 18:46:52 +0100
commitc93850d1d78c7040709d78aee5514c5c5035c4ab (patch)
treefd22af7fe9b40221a05b2c3ac708e23b234470d8
parent3b7a2273080dc4113e4e27211c57eba6d3eca210 (diff)
libxtables: missing comment initialization in xt_xlate_alloc()
Initialize comment buffer when allocation the xt translation structure. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--libxtables/xtables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index fe24caa2..5e23734d 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -2014,6 +2014,7 @@ struct xt_xlate *xt_xlate_alloc(int size)
xl->buf.size = size;
xl->buf.rem = size;
xl->buf.off = 0;
+ xl->comment[0] = '\0';
return xl;
}