diff options
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/adapter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c index 6eb306e9..cd75e6c9 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -3755,6 +3755,9 @@ static DBusHandlerResult create_device(DBusConnection *conn, DBUS_TYPE_INVALID) == FALSE) return error_invalid_arguments(conn, msg, NULL); + if (check_address(address) < 0) + return error_invalid_arguments(conn, msg, NULL); + if (adapter_find_device(adapter, address)) return error_already_exists(conn, msg, "Device already exists"); |