miniupnpd: updated to 2.1.20190824

arm-ng
kille72 6 years ago
parent c45aede784
commit 6c77dc875a

@ -1,4 +1,7 @@
$Id: Changelog.txt,v 1.449 2019/06/25 21:28:28 nanard Exp $ $Id: Changelog.txt,v 1.450 2019/08/24 08:42:50 nanard Exp $
2019/08/24:
Small fixes in netfilter code
2019/06/25: 2019/06/25:
Update netfilter nftables code Update netfilter nftables code

@ -1,7 +1,7 @@
/* $Id: iptcrdr.c,v 1.61 2019/02/10 11:44:35 nanard Exp $ */ /* $Id: iptcrdr.c,v 1.62 2019/08/24 07:06:22 nanard Exp $ */
/* vim: tabstop=4 shiftwidth=4 noexpandtab /* vim: tabstop=4 shiftwidth=4 noexpandtab
* MiniUPnP project * MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
* (c) 2006-2019 Thomas Bernard * (c) 2006-2019 Thomas Bernard
* This software is subject to the conditions detailed * This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */ * in the LICENCE file provided within the distribution */
@ -1617,6 +1617,9 @@ get_portmappings_in_range(unsigned short startport, unsigned short endport,
{ {
unsigned short * tmp; unsigned short * tmp;
/* need to increase the capacity of the array */ /* need to increase the capacity of the array */
capacity += 128;
if (capacity <= *number)
capacity = *number + 1;
tmp = realloc(array, sizeof(unsigned short)*capacity); tmp = realloc(array, sizeof(unsigned short)*capacity);
if(!tmp) if(!tmp)
{ {

@ -1,7 +1,7 @@
/* $Id: iptpinhole.c,v 1.19 2018/04/22 19:36:58 nanard Exp $ */ /* $Id: iptpinhole.c,v 1.20 2019/08/24 07:18:23 nanard Exp $ */
/* MiniUPnP project /* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
* (c) 2012-2018 Thomas Bernard * (c) 2012-2019 Thomas Bernard
* This software is subject to the conditions detailed * This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */ * in the LICENCE file provided within the distribution */
@ -186,6 +186,7 @@ ip6tc_init_verify_append(const char * table,
syslog(LOG_ERR, "ip6tc_commit() error : %s", ip6tc_strerror(errno)); syslog(LOG_ERR, "ip6tc_commit() error : %s", ip6tc_strerror(errno));
goto error; goto error;
} }
ip6tc_free(h);
return 0; /* ok */ return 0; /* ok */
error: error:
ip6tc_free(h); ip6tc_free(h);

Loading…
Cancel
Save