Home My Page Projects Code Snippets Project Openings DPWS Core
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files Mediawiki

[#402] exception when dpwscore.xml configured with https listener

Date:
2013-12-04 09:43
Priority:
3
State:
Open
Submitted by:
Antoine Hincelin (ahincelin)
Assigned to:
Stéphane ROUGES (srouges)
Target Fix Version:
v2.5.1
Product:
DPWS Core
Operating System:
Windows XP
Component:
DCXML
Version:
v2.5.0
Severity:
normal
Resolution:
Fixed
Hardware:
none
URL:
Summary:
exception when dpwscore.xml configured with https listener

Detailed description

If dpwscore.xml contains:
<dcc:Listener id="HTTPSListener" transport="https" port="8443" />

and DPWSCore is configured without DC_WITH_TLS_SSL

then application crashes in create_listener() function (dcDPWS_Registry.c), when freeing listener struct.


suggestion: add extra check on
netEndpoint->invoc_list and netEndpoint->transport in freeListenerStruct() function.


static void freeListenerStruct(struct network_endpoint * netEndpoint)
{
if (netEndpoint->invoc_list)
DA_FREE(&netEndpoint->invoc_list->ports, NULL);
if (netEndpoint->transport)
if (netEndpoint->transport->fdeleteconfig)
netEndpoint->transport->fdeleteconfig(netEndpoint->user_data);
...
Message  ↓
Date: 2014-02-12 15:12
Sender: Stéphane ROUGES

Fixed in trunk

Attachments:
Size Name Date By Download
815 bytesdcDPWS_Registry.c.patch2013-12-04 09:43ahincelindcDPWS_Registry.c.patch
Field Old Value Date By
Target Fix VersionUnassigned2014-02-12 15:12srouges
ResolutionNone2014-02-12 15:12srouges
assigned_tonone2014-02-11 17:00srouges
File Added61: dcDPWS_Registry.c.patch2013-12-04 09:43ahincelin