ladishd: fix use of uninitialized memory (app_guid again)
For app-less clients, app_uuid is not initialized
This commit is contained in:
parent
0ba807b478
commit
90b5b6d881
|
@ -803,7 +803,21 @@ port_appeared(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vclient = ladish_graph_find_client_by_app(vgraph, app_uuid);
|
if (has_app)
|
||||||
|
{
|
||||||
|
vclient = ladish_graph_find_client_by_app(vgraph, app_uuid);
|
||||||
|
if (vclient == NULL)
|
||||||
|
{
|
||||||
|
log_info("Lookup by app uuid failed, attempting lookup by name '%s'", vclient_name);
|
||||||
|
goto find_by_name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
find_by_name:
|
||||||
|
vclient = ladish_graph_find_client_by_name(vgraph, vclient_name, true);
|
||||||
|
}
|
||||||
|
|
||||||
if (vclient == NULL)
|
if (vclient == NULL)
|
||||||
{
|
{
|
||||||
log_info("creating new vclient");
|
log_info("creating new vclient");
|
||||||
|
|
Loading…
Reference in New Issue