HInfo->ServiceTable initialization in UpnpRegisterRootDevice2 and UpnpRegisterRootDevice4

Initialize also HInfo->ServiceTable in UpnpRegisterRootDevice2 and
UpnpRegisterRootDevice4 functions
This commit is contained in:
Fabrice Fontaine 2012-03-05 12:43:07 +01:00
parent 20372ccef6
commit 26c3f87eca
2 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,13 @@
Version 1.6.16
*******************************************************************************
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
HInfo->ServiceTable initialization in UpnpRegisterRootDevice2 and UpnpRegisterRootDevice4
Initialize also HInfo->ServiceTable in UpnpRegisterRootDevice2 and
UpnpRegisterRootDevice4 functions
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
SF Bug Tracker id 3496703 - Handle_Info::ServiceList may have undefined value

View File

@ -1008,6 +1008,7 @@ int UpnpRegisterRootDevice2(
*/
UpnpPrintf(UPNP_ALL, API, __FILE__, __LINE__,
"UpnpRegisterRootDevice2: Gena Check\n" );
memset(&HInfo->ServiceTable, 0, sizeof(HInfo->ServiceTable));
hasServiceTable = getServiceTable(
(IXML_Node *)HInfo->DescDocument,
&HInfo->ServiceTable,
@ -1173,6 +1174,7 @@ int UpnpRegisterRootDevice4(
*/
UpnpPrintf(UPNP_ALL, API, __FILE__, __LINE__,
"UpnpRegisterRootDevice4: Gena Check\n" );
memset(&HInfo->ServiceTable, 0, sizeof(HInfo->ServiceTable));
hasServiceTable = getServiceTable(
(IXML_Node *)HInfo->DescDocument,
&HInfo->ServiceTable,