HInfo->ServiceTable initialization in UpnpRegisterRootDevice2 and UpnpRegisterRootDevice4

Initialize also HInfo->ServiceTable in UpnpRegisterRootDevice2 and
UpnpRegisterRootDevice4 functions
(cherry picked from commit 26c3f87eca)
This commit is contained in:
Fabrice Fontaine 2012-03-05 12:43:07 +01:00 committed by Marcelo Roberto Jimenez
parent 7dd2d33382
commit b5061149a6
2 changed files with 9 additions and 0 deletions

View File

@ -299,6 +299,13 @@ Version 1.8.0
Version 1.6.16 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> 2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
SF Bug Tracker id 3496703 - Handle_Info::ServiceList may have undefined value SF Bug Tracker id 3496703 - Handle_Info::ServiceList may have undefined value

View File

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