chiark / gitweb /
bus: fix bad memory access in driverd when we get an empty triggers list
authorLennart Poettering <lennart@poettering.net>
Sat, 21 Dec 2013 22:26:51 +0000 (23:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 21 Dec 2013 22:26:51 +0000 (23:26 +0100)
src/bus-driverd/bus-driverd.c

index 8dd3418..a420e7f 100644 (file)
@@ -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(