summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-21 23:26:51 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-21 23:26:51 +0100
commit780f962c3eaa88370c1b69a8c53b2cacc3481598 (patch)
tree22052a25b5c66c9a0087b990d8803711c4fe8987
parentc20733832fdfc780380f1b276655d69782057e49 (diff)
bus: fix bad memory access in driverd when we get an empty triggers list
-rw-r--r--src/bus-driverd/bus-driverd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index 8dd3418f01..a420e7fe67 100644
--- a/src/bus-driverd/bus-driverd.c
+++ b/src/bus-driverd/bus-driverd.c
@@ -694,7 +694,7 @@ static int driver_start_service_by_name(sd_bus *bus, sd_bus_message *m, void *us
if (r < 0)
return r;
- if (!t[0] || t[1])
+ if (!t || !t[0] || t[1])
return -EIO;
r = sd_bus_call_method(