mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
Merge branch 'fix/esp_netif_ppp_nullptr_check' into 'master'
fix(esp_netif): Prevent null deref when checking netif type See merge request espressif/esp-idf!34911
This commit is contained in:
commit
daa980ffab
@ -72,7 +72,7 @@
|
|||||||
* @brief macros to check netif related data to evaluate interface type
|
* @brief macros to check netif related data to evaluate interface type
|
||||||
*/
|
*/
|
||||||
#if CONFIG_PPP_SUPPORT
|
#if CONFIG_PPP_SUPPORT
|
||||||
#define _IS_NETIF_ANY_POINT2POINT_TYPE(netif) (netif->related_data && netif->related_data->is_point2point)
|
#define _IS_NETIF_ANY_POINT2POINT_TYPE(netif) (netif && netif->related_data && netif->related_data->is_point2point)
|
||||||
#else
|
#else
|
||||||
#define _IS_NETIF_ANY_POINT2POINT_TYPE(netif) false
|
#define _IS_NETIF_ANY_POINT2POINT_TYPE(netif) false
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user