bus: fix deserialization of polkit response

This commit is contained in:
Lennart Poettering
2013-11-05 17:45:46 +01:00
parent ced4d06784
commit 313333b403
+3 -3
View File
@@ -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;