mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
fix(nimble): Fix vulnerabilities in NimBLE examples
This commit is contained in:
@@ -507,8 +507,11 @@ void app_main(void)
|
||||
ble_hs_cfg.store_status_cb = ble_store_util_status_rr;
|
||||
|
||||
/* Initialize Notify Task */
|
||||
xTaskCreate(notify_task, "notify_task", 4096, NULL, 10, NULL);
|
||||
|
||||
BaseType_t task_rc = xTaskCreate(notify_task, "notify_task", 4096, NULL, 10, NULL);
|
||||
if (task_rc != pdPASS) {
|
||||
ESP_LOGE(tag, "Failed to create notify_task (rc=%d)", task_rc);
|
||||
return ;
|
||||
}
|
||||
#if MYNEWT_VAL(BLE_GATTS)
|
||||
rc = gatt_svr_init();
|
||||
assert(rc == 0);
|
||||
|
||||
Reference in New Issue
Block a user