From 5df35db6ab6d5747705f00eb446421ea973efed4 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 8 Feb 2015 10:46:13 +0100 Subject: [PATCH] fix c7d7efd2302b561e0d321c7e9c426396174bf6cc --- miniupnpd/netfilter/iptpinhole.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniupnpd/netfilter/iptpinhole.c b/miniupnpd/netfilter/iptpinhole.c index 286868a..048f45f 100644 --- a/miniupnpd/netfilter/iptpinhole.c +++ b/miniupnpd/netfilter/iptpinhole.c @@ -1,4 +1,4 @@ -/* $Id: iptpinhole.c,v 1.12 2015/02/08 09:16:50 nanard Exp $ */ +/* $Id: iptpinhole.c,v 1.13 2015/02/08 09:44:20 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2012-2015 Thomas Bernard @@ -240,6 +240,7 @@ int add_pinhole(const char * ifname, free(target); return -1; } + e = tmp; memcpy(e->elems, match, match->u.match_size); memcpy(e->elems + match->u.match_size, target, target->u.target_size); e->target_offset = sizeof(struct ip6t_entry)