chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ced4d06
)
bus: fix deserialization of polkit response
author
Lennart Poettering
<lennart@poettering.net>
Tue, 5 Nov 2013 16:45:46 +0000
(17:45 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 5 Nov 2013 16:45:46 +0000
(17:45 +0100)
src/libsystemd-bus/bus-util.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-bus/bus-util.c
b/src/libsystemd-bus/bus-util.c
index eec70ed15270c56e246e01597caa56695e4e09d9..3bb1fb724db7590cca85fb18a42120e734682679 100644
(file)
--- 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)
- r
eturn 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;