diff options
author | MaxXor <admin@maxxor.org> | 2017-08-30 21:13:02 +0200 |
---|---|---|
committer | MaxXor <admin@maxxor.org> | 2017-08-30 21:13:02 +0200 |
commit | b338dad2410b5e6cb1c811589f01a991766e7768 (patch) | |
tree | ae8fcc85d4a97038d78be66effe977fbbcceb115 /external/miniupnpc/portlistingparse.c | |
parent | Merge pull request #2349 (diff) | |
download | monero-b338dad2410b5e6cb1c811589f01a991766e7768.tar.xz |
update miniupnpc
Diffstat (limited to 'external/miniupnpc/portlistingparse.c')
-rw-r--r-- | external/miniupnpc/portlistingparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/external/miniupnpc/portlistingparse.c b/external/miniupnpc/portlistingparse.c index 0e0927803..55859f271 100644 --- a/external/miniupnpc/portlistingparse.c +++ b/external/miniupnpc/portlistingparse.c @@ -1,7 +1,7 @@ /* $Id: portlistingparse.c,v 1.9 2015/07/15 12:41:13 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ - * (c) 2011-2015 Thomas Bernard + * (c) 2011-2016 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ #include <string.h> @@ -55,7 +55,7 @@ startelt(void * d, const char * name, int l) pdata->curelt = PortMappingEltNone; for(i = 0; elements[i].str; i++) { - if(memcmp(name, elements[i].str, l) == 0) + if(strlen(elements[i].str) == (size_t)l && memcmp(name, elements[i].str, l) == 0) { pdata->curelt = elements[i].code; break; |