BrowseHelper_InitializeNodesToBrowse fails when referenceType is NULL
BrowseHelper_InitializeNodesToBrowse
should support a NULL
in browseRequests[i].referenceTypeId
as well as empty strings. BrowseHelper_InitializeNodesToBrowse
should test this before calling strlen
on this pointer, which does not support to be called on NULL
.
The documentation of the structure SOPC_ClientHelper_BrowseRequest
should document that it does also support a NULL
and the meaning of zero-length string or NULL
(which is that there is no filter on browsed nodes).
The variable refNodeId
should be suppressed, it appears that browseRequests[i].referenceTypeId
could be directly transformed into &nodesToBrowse[i].ReferenceTypeId
, without the intermediate copy.
Edited by Pierre-Antoine BRAMERET