properly initialize data structure for SOAP parsing in ParseNameValue()
topelt field was not properly initialized. should fix #268
This commit is contained in:
parent
7492fe42c2
commit
7aeb624b44
|
@ -1,7 +1,8 @@
|
||||||
/* $Id: upnpreplyparse.c,v 1.19 2015/07/15 10:29:11 nanard Exp $ */
|
/* $Id: upnpreplyparse.c,v 1.19 2015/07/15 10:29:11 nanard Exp $ */
|
||||||
/* MiniUPnP project
|
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||||
|
* MiniUPnP project
|
||||||
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||||
* (c) 2006-2015 Thomas Bernard
|
* (c) 2006-2017 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 */
|
||||||
|
|
||||||
|
@ -104,9 +105,7 @@ ParseNameValue(const char * buffer, int bufsize,
|
||||||
struct NameValueParserData * data)
|
struct NameValueParserData * data)
|
||||||
{
|
{
|
||||||
struct xmlparser parser;
|
struct xmlparser parser;
|
||||||
data->l_head = NULL;
|
memset(data, 0, sizeof(struct NameValueParserData));
|
||||||
data->portListing = NULL;
|
|
||||||
data->portListingLength = 0;
|
|
||||||
/* init xmlparser object */
|
/* init xmlparser object */
|
||||||
parser.xmlstart = buffer;
|
parser.xmlstart = buffer;
|
||||||
parser.xmlsize = bufsize;
|
parser.xmlsize = bufsize;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
/* $Id: upnpreplyparse.c,v 1.19 2015/07/15 10:29:11 nanard Exp $ */
|
/* $Id: upnpreplyparse.c,v 1.19 2015/07/15 10:29:11 nanard Exp $ */
|
||||||
/* MiniUPnP project
|
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||||
|
* MiniUPnP project
|
||||||
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||||
* (c) 2006-2015 Thomas Bernard
|
* (c) 2006-2017 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 */
|
||||||
|
|
||||||
|
@ -104,9 +105,7 @@ ParseNameValue(const char * buffer, int bufsize,
|
||||||
struct NameValueParserData * data)
|
struct NameValueParserData * data)
|
||||||
{
|
{
|
||||||
struct xmlparser parser;
|
struct xmlparser parser;
|
||||||
data->l_head = NULL;
|
memset(data, 0, sizeof(struct NameValueParserData));
|
||||||
data->portListing = NULL;
|
|
||||||
data->portListingLength = 0;
|
|
||||||
/* init xmlparser object */
|
/* init xmlparser object */
|
||||||
parser.xmlstart = buffer;
|
parser.xmlstart = buffer;
|
||||||
parser.xmlsize = bufsize;
|
parser.xmlsize = bufsize;
|
||||||
|
|
Loading…
Reference in New Issue