Change-Id: Ica56c80e6729d23a0cbb9a260ddf1dee56e13a31
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
}
addr = g_malloc0(sizeof(bluetooth_device_address_t));
memcpy(addr, address, sizeof(bluetooth_device_address_t));
+
+ if (service_monitor_list == NULL) {
+ BT_ERR("There is NO watcher");
+ return BLUETOOTH_ERROR_NONE;
+ }
+
service_monitor_list =
g_slist_append(service_monitor_list, addr);
} else {
GDBusMethodInvocation *invocation,
gpointer user_data)
{
- GSList *l1;
+ GSList *l1 = NULL;
int len = 0;
int i = 0;
#define BT_ADV_FILTER_POLICY_DEFAULT 0x00
#define BT_ADV_TYPE_DEFAULT 0x00
#define BT_ADV_FILTER_POLICY_ALLOW_SCAN_CONN_WL_ONLY 0x03
+#define BT_ADV_MULTI_MAX 16
typedef struct {
int adv_inst_max;
slot_num = atoi(value);
retv_if(slot_num < 0, FALSE);
+ retv_if(slot_num > BT_ADV_MULTI_MAX, FALSE);
if (slot_num != le_feature_info.adv_inst_max) {
__bt_free_le_adv_slot();
{
bt_obex_agent_info *info;
GDBusProxy *proxy;
- GDBusNodeInfo *new_conn_node;
+ GDBusNodeInfo *new_conn_node = NULL;
GDBusNodeInfo *auth_reply_node = NULL;
GError *err = NULL;