summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-05 17:45:46 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-05 17:45:46 +0100
commit313333b403439360c0396a50d77d0a1ee2bca4df (patch)
treecafe6df2e19236f540db638c9c950089252255f9 /src
parentced4d06784dbb19666688947901961f949f2aa6d (diff)
downloadsystemd-313333b403439360c0396a50d77d0a1ee2bca4df.tar.gz
systemd-313333b403439360c0396a50d77d0a1ee2bca4df.tar.bz2
systemd-313333b403439360c0396a50d77d0a1ee2bca4df.zip
bus: fix deserialization of polkit response
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-bus/bus-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsystemd-bus/bus-util.c b/src/libsystemd-bus/bus-util.c
index eec70ed152..3bb1fb724d 100644
--- a/src/libsystemd-bus/bus-util.c
+++ b/src/libsystemd-bus/bus-util.c
@@ -178,9 +178,9 @@ int bus_verify_polkit(
return r;
}
- r = sd_bus_message_read(reply, "(bb)", &authorized, &challenge);
- if (r < 0)
- return r;
+ r = sd_bus_message_enter_container(reply, 'r', "bba{ss}");
+ if (r >= 0)
+ r = sd_bus_message_read(reply, "bb", &authorized, &challenge);
if (authorized)
return 1;