diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-07-10 11:47:46 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-07-10 11:51:10 +0200 |
commit | 3eab786d6a687187556c92b3dc0f0664d8352471 (patch) | |
tree | fafe9ba57f418266750b1099e85a84f43cb6d477 | |
parent | fbe9f1ecccb5ac02858fa7eee2979e0e4d97bb5f (diff) |
libxtables: set clone's initial data to NULL
Avoid a crash in xs_init_match when a clone's m->udata points at the
parent.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r-- | iptables/xtables.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/xtables.c b/iptables/xtables.c index b05df97b..1a5e568c 100644 --- a/iptables/xtables.c +++ b/iptables/xtables.c @@ -632,6 +632,7 @@ xtables_find_match(const char *name, enum xtables_tryload tryload, /* Second and subsequent clones */ clone = xtables_malloc(sizeof(struct xtables_match)); memcpy(clone, ptr, sizeof(struct xtables_match)); + clone->udata = NULL; clone->mflags = 0; /* This is a clone: */ clone->next = clone; |