1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

[UPnP] Stability fixes (#13652)

This commit is contained in:
Cthulhu-throwaway 2022-02-22 04:22:10 -03:00 committed by GitHub
parent bc02f8319e
commit 023f427856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,11 +442,14 @@ static bool parse_external_address_node(rxml_node_t *node,
/* XML recursion */
rxml_node_t *child = node->children;
do
if (child)
{
if (parse_external_address_node(child, device))
return true;
} while ((child = child->next));
do
{
if (parse_external_address_node(child, device))
return true;
} while ((child = child->next));
}
}
return false;
@ -522,11 +525,14 @@ static bool parse_open_port_node(rxml_node_t *node,
/* XML recursion */
rxml_node_t *child = node->children;
do
if (child)
{
if (parse_open_port_node(child, request))
return true;
} while ((child = child->next));
do
{
if (parse_open_port_node(child, request))
return true;
} while ((child = child->next));
}
}
return false;