mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miraclectl: fix crash during shutdown and scan-stop
Fix a NULL deref during shutdown if we try to stop a non-existant scan. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
dd3c8eac9c
commit
9212e72c52
1 changed files with 1 additions and 1 deletions
|
@ -1635,7 +1635,7 @@ static int filters_object_fn(sd_bus *bus,
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
} else {
|
} else {
|
||||||
if (!strcmp(link, scan_link))
|
if (scan_link && !strcmp(link, scan_link))
|
||||||
cmd_scan_stop(true);
|
cmd_scan_stop(true);
|
||||||
|
|
||||||
cli_printf("[" CLI_YELLOW "REMOVE" CLI_DEFAULT "] Link: %s\n",
|
cli_printf("[" CLI_YELLOW "REMOVE" CLI_DEFAULT "] Link: %s\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue