mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-12 07:04:28 +00:00
fix c7d7efd2302b561e0d321c7e9c426396174bf6cc
This commit is contained in:
parent
7c1a04ab30
commit
5df35db6ab
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user