sd-bus: fix use-after-free in close_kdbus_msg()
authorDaniel Mack <daniel@zonque.org>
Tue, 7 Oct 2014 09:32:07 +0000 (11:32 +0200)
committerDaniel Mack <daniel@zonque.org>
Tue, 7 Oct 2014 09:38:31 +0000 (11:38 +0200)
commitca794c8e9583eb660f535af32c8c8281a284f270
tree82e99eb89e2ee85fc730328ee099da1a53d445e2
parent4e3deeedc15b03197d591850061316289245c9a9
sd-bus: fix use-after-free in close_kdbus_msg()

Walk the items first, then free the memory of the message.

Also, while at it, make coverity happy with an explicit (void) prefix.
We intentionally ignore the return value here.
src/libsystemd/sd-bus/bus-kernel.c