Merge "Match the correct privilege for RFCOMM listen and accept API" into tizen
authorPyun DoHyun <dh79.pyun@samsung.com>
Wed, 5 Dec 2018 00:34:07 +0000 (00:34 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 5 Dec 2018 00:34:07 +0000 (00:34 +0000)
bt-service/bt-service-adapter-le.c

index 4a50b1e..d85f6bb 100644 (file)
@@ -330,6 +330,9 @@ gboolean _bt_is_advertising(void)
        gboolean status = FALSE;
        int i;
 
+       if (le_adv_slot == NULL)
+               return FALSE;
+
        for (i = 0; i < le_feature_info.adv_inst_max; i++) {
                if (le_adv_slot[i].is_advertising == TRUE)
                        status = TRUE;