diff options
-rw-r--r-- | modules/connman/evolution-connman.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/connman/evolution-connman.c b/modules/connman/evolution-connman.c index c55d09c54a..70befd2ed1 100644 --- a/modules/connman/evolution-connman.c +++ b/modules/connman/evolution-connman.c @@ -71,6 +71,12 @@ connman_monitor (DBusConnection *connection G_GNUC_UNUSED, DBusError error = DBUS_ERROR_INIT; DBusHandlerResult ret = DBUS_HANDLER_RESULT_NOT_YET_HANDLED; + if (!dbus_message_has_path (message, CM_DBUS_PATH) || + !dbus_message_has_interface (message, CM_DBUS_INTERFACE) || + !dbus_message_has_sender (message, CM_DBUS_SERVICE) || + !dbus_message_has_member (message, "StateChanged")) + goto err_exit; + if (!dbus_message_get_args (message, &error, DBUS_TYPE_STRING, &value, DBUS_TYPE_INVALID)) |