Fix subtle crashed when a dbus reply has no message content.
authorRob Taylor <rob.taylor@codethink.co.uk>
Tue, 2 Feb 2010 23:22:40 +0000 (23:22 +0000)
committerTim Horton <hortont424@gmail.com>
Sat, 6 Feb 2010 01:55:58 +0000 (20:55 -0500)
commit9a7d0b8d303909a0073bd1ca0009416554470754
tree2079da9a8afbc600e3668edb4b3cc798596fb942
parent227f3df192bd6df029f3779a26e35e9a4a343a9b
Fix subtle crashed when a dbus reply has no message content.

In the DBus spec, its perfectly valid to send empty reply messages, even
if a method call message has been set 'no_reply'. In this case, the dbus
module was invoking a closure with uninitialised data, causing all sorts
of interesting behaviour.

This patch fixes this by not invoking the
closure when a reply is empty.
modules/dbus/module.c