summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-service.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-28 11:36:22 -0300
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-28 11:36:22 -0300
commit2765481ccb865fa2e0955e245880321aee27712c (patch)
tree459e87deff7a5462468f6964acc8a2a8ac2f7488 /hcid/dbus-service.c
parent0df1e79ee08c64d5c5c13d281b03580583ecf5dd (diff)
Check source and destination on service_req_auth.
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r--hcid/dbus-service.c3
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;