From 313333b403439360c0396a50d77d0a1ee2bca4df Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 5 Nov 2013 17:45:46 +0100 Subject: bus: fix deserialization of polkit response --- src/libsystemd-bus/bus-util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf