Fix return value error of bt_socket_create_rfcomm_ex() 69/163369/1
authorDeokhyun Kim <dukan.kim@samsung.com>
Mon, 11 Dec 2017 00:36:02 +0000 (09:36 +0900)
committerDeokhyun Kim <dukan.kim@samsung.com>
Mon, 11 Dec 2017 00:36:02 +0000 (09:36 +0900)
Change-Id: I01019394088299dd329ba5880be8b58aa3afca05
Signer-off-by: Deokhyun Kim <dukan.kim@samsung.com>
src/bluetooth-socket.c

index c141dc3f57c45ba96eac54bb770ef5375b203711..9ead77deac68fb268d53ad1bee80f53ce63f21b7 100644 (file)
@@ -143,7 +143,7 @@ int bt_socket_create_rfcomm_ex(const char *uuid, const char *bus_name, const cha
        BT_CHECK_INPUT_PARAMETER(bus_name);
        BT_CHECK_INPUT_PARAMETER(object_path);
 
-       error_code = bluetooth_rfcomm_create_socket_ex(uuid, bus_name, object_path);
+       error_code = _bt_get_error_code(bluetooth_rfcomm_create_socket_ex(uuid, bus_name, object_path));
        if (error_code != BT_ERROR_NONE) {
                BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code),
                                error_code);