BT_DBG("No need to check privilege from bt-core");
} else if (__bt_service_check_privilege(service_function,
service_type, (const char *)sender) == FALSE) {
- result = BLUETOOTH_ERROR_PERMISSION_DEINED;
BT_ERR("Client don't have the privilege to excute this function");
-
+ /* TODO: privilege check doesn't work properly. It sometimes reutrns fail. */
+ result = BLUETOOTH_ERROR_PERMISSION_DEINED;
goto fail;
}
g_variant_unref(param3);
g_variant_unref(param4);
g_variant_unref(param5);
- g_free(sender);
+// g_free(sender);
FN_END;
return;
fail:
g_variant_unref(param3);
g_variant_unref(param4);
g_variant_unref(param5);
- g_free(sender);
+// g_free(sender);
}
FN_END;