Fix svace issue 46/318546/2
authorWootak Jung <wootak.jung@samsung.com>
Wed, 2 Oct 2024 04:35:10 +0000 (13:35 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 2 Oct 2024 04:53:57 +0000 (13:53 +0900)
Issue ID: 247545

Change-Id: I4f468d82c45c4c985f03594d0784a418ad2a0c0f
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-api/bt-l2cap-le-client.c

index 639d0cbf3a155099e04f8e6332f6742e5a3b8592..1dd1acca57761246451c5cb4cc9d886972fe0166 100644 (file)
@@ -292,7 +292,13 @@ static void __async_req_cb_with_unix_fd_list(GDBusProxy *proxy,
                }
 
                bt_event.param_data = (void *)conn_info;
-               goto failed;
+               bt_event.result = result;
+
+               BT_INFO("send fail event for l2cap_le client");
+               if (cb_data->cb)
+                       ((bluetooth_cb_func_ptr)cb_data->cb)(bt_event.event, &bt_event, cb_data->user_data);
+
+               g_free(bt_event.param_data);
        }
 
        if (!cb_data)