Change-Id: Iccfd32bcffe702cfe06cf09a253aded99e36738d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
#ifndef __INTEGRATE_GATT_INFO__
/* Remove server info from list */
server_info = _bt_find_remote_gatt_server_info(address);
#ifndef __INTEGRATE_GATT_INFO__
/* Remove server info from list */
server_info = _bt_find_remote_gatt_server_info(address);
gatt_server_info_list = g_slist_remove(gatt_server_info_list, server_info);
gatt_server_info_list = g_slist_remove(gatt_server_info_list, server_info);
- else
- BT_INFO("Can not find conn info, already removed!");
- /* Remove all services from info list_gatt_info */
- __bt_cleanup_remote_services(server_info);
+ /* Remove all services from info list_gatt_info */
+ __bt_cleanup_remote_services(server_info);
+ } else {
+ BT_INFO("Can not find conn info, already removed!");
+ }
#else
/* Remove all services from info list_gatt_info */
__bt_cleanup_remote_services(client_info);
#else
/* Remove all services from info list_gatt_info */
__bt_cleanup_remote_services(client_info);
bt_gatt_service_info_t *svc = NULL;
GSList *l;
bt_gatt_service_info_t *svc = NULL;
GSList *l;
+ if (!conn_info) {
+ BT_ERR("conn_info is NULL");
+ return;
+ }
+
svc_info_list = __bt_get_service_info_list(conn_info->connection_id);
if (!svc_info_list) {
BT_INFO("Could not find Svc Info list for the connection ID [%d]",
svc_info_list = __bt_get_service_info_list(conn_info->connection_id);
if (!svc_info_list) {
BT_INFO("Could not find Svc Info list for the connection ID [%d]",