eclipse-threadx / netxduo

Eclipse ThreadX - NetXDuo is an advanced, industrial-grade TCP/IP network stack designed specifically for deeply embedded real-time and IoT applications
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/netx-duo/index.md
MIT License
247 stars 140 forks source link

Bug : nx_ip_interface_status_check() #133

Closed EdouardMALOT closed 2 years ago

EdouardMALOT commented 2 years ago

In nx_ip_interface_status_check() we don't check if driver entry pointer if is not NULL before calling it.

https://github.com/azure-rtos/netxduo/blob/a69a06e35da0ac763b363388f555b508b0cd84b7/common/src/nx_ip_interface_status_check.c#L188

https://github.com/azure-rtos/netxduo/blob/a69a06e35da0ac763b363388f555b508b0cd84b7/common/src/nx_ip_interface_status_check.c#L257

Note : after nx_ip_interface_detach(), this pointeur is set to NULL, so we should test it with something like :

image
TiejunMS commented 2 years ago

Thanks @DoudFPV ! We have fixed this issue and will be available in next release.