Fixed zero length data of descriptor read
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-hdp.c
index d85212f..0684a34 100755 (executable)
@@ -412,7 +412,7 @@ BT_EXPORT_API int bluetooth_hdp_send_data(unsigned int channel_id,
 
        switch (privilege_token) {
        case 0:
-               result = _bt_check_privilege(BT_BLUEZ_SERVICE, BT_HDP_SEND_DATA);
+               result = _bt_check_privilege(BT_CHECK_PRIVILEGE, BT_HDP_SEND_DATA);
 
                if (result == BLUETOOTH_ERROR_NONE) {
                        privilege_token = 1; /* Have a permission */