fix(esp_netif): Fixed Coverity issue CID 459204

Closes IDF-9847

See merge request espressif/esp-idf!29400
This commit is contained in:
Abhik Roy 2024-05-07 20:37:21 +10:00
parent a13bd2388b
commit 437f08100d

View File

@ -1247,6 +1247,7 @@ static esp_err_t esp_netif_tx_rx_event_api(esp_netif_api_msg_t *msg)
esp_netif_t *esp_netif = msg->esp_netif; esp_netif_t *esp_netif = msg->esp_netif;
if (esp_netif == NULL) { if (esp_netif == NULL) {
ESP_LOGE(TAG, "Invalid esp_netif"); ESP_LOGE(TAG, "Invalid esp_netif");
return ESP_ERR_ESP_NETIF_INVALID_PARAMS;
} }
ESP_LOGD(TAG, "%s esp_netif:%p", __func__, esp_netif); ESP_LOGD(TAG, "%s esp_netif:%p", __func__, esp_netif);