bus: fix bad memory access in driverd when we get an empty triggers list
This commit is contained in:
parent
c20733832f
commit
780f962c3e
|
@ -694,7 +694,7 @@ static int driver_start_service_by_name(sd_bus *bus, sd_bus_message *m, void *us
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
if (!t[0] || t[1])
|
if (!t || !t[0] || t[1])
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
r = sd_bus_call_method(
|
r = sd_bus_call_method(
|
||||||
|
|
Loading…
Reference in a new issue