mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-21 18:03:38 +03:00
B #4503: checking nodestval before dereferencing
Signed-off-by: Abdullahaml1 <abdullah_aml@protonmail.com>
This commit is contained in:
parent
7fafd51a64
commit
d3443f5e77
@ -79,6 +79,11 @@ public:
|
||||
break;
|
||||
|
||||
case XPATH_NODESET:
|
||||
if (obj->nodesetval == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < obj->nodesetval->nodeNr ; ++i)
|
||||
{
|
||||
cur = obj->nodesetval->nodeTab[i];
|
||||
|
@ -116,6 +116,11 @@ void ObjectXML::xpaths(std::vector<std::string>& content, const char * expr)
|
||||
break;
|
||||
|
||||
case XPATH_NODESET:
|
||||
if (obj->nodesetval == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for(int i = 0; i < obj->nodesetval->nodeNr ; ++i)
|
||||
{
|
||||
cur = obj->nodesetval->nodeTab[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user