chiark / gitweb /
bus: fix use-after-free in slot-release
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 28 Aug 2014 10:42:03 +0000 (12:42 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 28 Aug 2014 10:45:51 +0000 (12:45 +0200)
commitd974ad0524942882f489914013d08ab16d147170
treebf184fa3e3d1a474f12b6a45908f27620bf2881e
parentfa9838ddd62ea31f8aea99757916a16d76b31cbc
bus: fix use-after-free in slot-release

We must not access slot->floating after we possible dropped the last
reference to it. Fix all callback-invocations to first check
slot->floating and possible disconnect the slot, then release the last
reference.
src/libsystemd/sd-bus/sd-bus.c