Diff between d42cbe858006f08812c7d39dccfa6448a0b7da34 and 1f3d21d46f62a3359d6280ba952750cb71ba49dc
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +2 | -0 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 3675616..bb79b38 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1269,6 +1269,8 @@ static DBusMessage *disconnect_profile(DBusConnection *conn, DBusMessage *msg,
return btd_error_invalid_args(msg);
uuid = bt_name2string(pattern);
+ if (uuid == NULL)
+ return btd_error_invalid_args(msg);
p = find_connectable_profile(dev, uuid);
g_free(uuid);