1
0
Fork 0
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:
David Herrmann 2014-02-11 14:34:13 +01:00
parent dd3c8eac9c
commit 9212e72c52

View file

@ -1635,7 +1635,7 @@ static int filters_object_fn(sd_bus *bus,
if (r < 0)
return r;
} else {
if (!strcmp(link, scan_link))
if (scan_link && !strcmp(link, scan_link))
cmd_scan_stop(true);
cli_printf("[" CLI_YELLOW "REMOVE" CLI_DEFAULT "] Link: %s\n",