diff options
Diffstat (limited to 'hcid/dbus-sdp.c')
-rw-r--r-- | hcid/dbus-sdp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hcid/dbus-sdp.c b/hcid/dbus-sdp.c index fe3ad04a..edf220a9 100644 --- a/hcid/dbus-sdp.c +++ b/hcid/dbus-sdp.c @@ -1111,11 +1111,15 @@ static struct service_data sdp_services[] = { DBusHandlerResult handle_sdp_method(DBusConnection *conn, DBusMessage *msg, void *data) { + const struct hci_dbus_data *pdata = data; service_handler_func_t handler; if (!hcid_dbus_use_experimental()) return error_unknown_method(conn, msg); + if (!pdata->up) + return error_not_ready(conn, msg); + handler = find_service_handler(sdp_services, msg); if (handler) |