17 May 2012 01:33
[PATCH BlueZ v5 13/13] adapter: do not check signature twice
Message signature is already checked in generic_message(), so there's no need to check again in the callback. --- src/adapter.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index 071fac9..ba12de0 100644 --- a/src/adapter.c +++ b/src/adapter.c <at> <at> -1317,9 +1317,6 <at> <at> static DBusMessage *list_devices(DBusConnection *conn, DBusMessageIter array_iter; const gchar *dev_path; - if (!dbus_message_has_signature(msg, DBUS_TYPE_INVALID_AS_STRING)) - return btd_error_invalid_args(msg); - reply = dbus_message_new_method_return(msg); if (!reply) return NULL; -- -- 1.7.10.2
RSS Feed