mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-31 08:36:16 +00:00
parent
e439318cf7
commit
5ca1a82f7f
@ -1,7 +1,7 @@
|
|||||||
/* $Id: upnppermissions.c,v 1.20 2020/10/30 21:37:35 nanard Exp $ */
|
/* $Id: upnppermissions.c,v 1.20 2020/10/30 21:37:35 nanard Exp $ */
|
||||||
/* MiniUPnP project
|
/* MiniUPnP project
|
||||||
* http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
|
* http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
|
||||||
* (c) 2006-2022 Thomas Bernard
|
* (c) 2006-2023 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 */
|
||||||
|
|
||||||
@ -176,6 +176,9 @@ read_permission_line(struct upnpperm * perm,
|
|||||||
int n_bits;
|
int n_bits;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* zero memory : see https://github.com/miniupnp/miniupnp/issues/652 */
|
||||||
|
memset(perm, 0, sizeof(struct upnpperm));
|
||||||
|
|
||||||
/* first token: (allow|deny) */
|
/* first token: (allow|deny) */
|
||||||
while(isspace(*p))
|
while(isspace(*p))
|
||||||
p++;
|
p++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user