diff options
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r-- | hcid/dbus-service.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index b6a13573..a85c3d8a 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -81,6 +81,9 @@ int service_req_auth(const bdaddr_t *src, const bdaddr_t *dst, gboolean trusted; const gchar *dev_path; + if (src == NULL || dst == NULL) + return -EINVAL; + adapter = manager_find_adapter(src); if (!adapter) return -EPERM; |