dbus: check that interface is not NULL (FS#667)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ab66ce8bec
commit
88dfed11e1
2
dbus.c
2
dbus.c
|
@ -319,7 +319,7 @@ a_dbus_process_request(DBusConnection *dbus_connection, DBusMessage *msg)
|
|||
else
|
||||
{
|
||||
signal_t *sig = signal_array_getbyid(&dbus_signals,
|
||||
a_strhash((const unsigned char *) interface));
|
||||
a_strhash((const unsigned char *) NONULL(interface)));
|
||||
if(sig)
|
||||
{
|
||||
/* there can be only ONE handler to send reply */
|
||||
|
|
Loading…
Reference in New Issue