diff options
author | Kay Sievers <kay@vrfy.org> | 2014-01-08 18:20:02 +0800 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-01-08 18:20:02 +0800 |
commit | 743e7e5242b72dac182b4c15ff3a48be83277ece (patch) | |
tree | b445ddf401cbdd3f585edd967fb25f406dbcc0f6 /src | |
parent | 2b197ae21c4a3571024fba1886eeeb87c0dfcf03 (diff) |
bus-driverd: properly reply to UpdateActivationEnvironment call
Diffstat (limited to 'src')
-rw-r--r-- | src/bus-driverd/bus-driverd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c index eee3ffebcb..7e0ad1e0c0 100644 --- a/src/bus-driverd/bus-driverd.c +++ b/src/bus-driverd/bus-driverd.c @@ -767,7 +767,11 @@ static int driver_update_environment(sd_bus*bus, sd_bus_message *m, void *userda if (r < 0) return r; - return sd_bus_call(bus, msg, 0, NULL, NULL); + r = sd_bus_call(bus, msg, 0, NULL, NULL); + if (r < 0) + return r; + + return sd_bus_reply_method_return(m, NULL); } static int driver_unsupported(sd_bus *bus, sd_bus_message *m, void *userdata, sd_bus_error *error) { |