kopia lustrzana https://github.com/espressif/esp-idf
ethernet: fix potential null pointer dereference
Closes https://github.com/espressif/esp-idf/issues/4890pull/4926/head
rodzic
718a34f765
commit
0a7ccb8095
|
@ -288,8 +288,8 @@ esp_err_t esp_eth_update_input_path(
|
|||
{
|
||||
esp_err_t ret = ESP_OK;
|
||||
esp_eth_driver_t *eth_driver = (esp_eth_driver_t *)hdl;
|
||||
eth_driver->priv = priv;
|
||||
ETH_CHECK(eth_driver, "ethernet driver handle can't be null", err, ESP_ERR_INVALID_ARG);
|
||||
eth_driver->priv = priv;
|
||||
eth_driver->stack_input = stack_input;
|
||||
return ESP_OK;
|
||||
err:
|
||||
|
|
Ładowanie…
Reference in New Issue