From: Jan Engelhardt Date: Sun, 10 Jul 2011 09:47:46 +0000 (+0200) Subject: libxtables: set clone's initial data to NULL X-Git-Tag: v1.4.12~1^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eab786d6a687187556c92b3dc0f0664d8352471;p=thirdparty%2Fiptables.git 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 --- 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;