mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ethernet: fix potential null pointer dereference
Closes https://github.com/espressif/esp-idf/issues/4890
This commit is contained in:
parent
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user