]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: support SD_BUS_DEFAULT* and don't crash in functions where bus is optional
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 19 Mar 2020 20:30:44 +0000 (21:30 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 19 Mar 2020 20:38:46 +0000 (21:38 +0100)
commit70bc558cc10685b1e67f493415de17ebfc5138c5
tree21a89f0727ec271466d5a2113ff15584bbeab1c0
parent501ecd670c2aeb9e92a7a7fa45a0172e808180ec
sd-bus: support SD_BUS_DEFAULT* and don't crash in functions where bus is optional

In those functions where bus defaults to the m->bus, we should also
resolve the magic parameters. And if neither called with bus=NULL
and an unattached message, return properly instead of crashing in assert
later.
src/libsystemd/sd-bus/sd-bus.c