|
From: | Nirav Desai |
Subject: | [lwip-devel] Check netif pointer before calling status callback |
Date: | Fri, 23 Dec 2016 11:55:50 +0000 |
Hi
Current implementation of NETIF_STATUS_CALLBACK is as follows:
#if LWIP_NETIF_STATUS_CALLBACK
#define NETIF_STATUS_CALLBACK(n) do{ if (n->status_callback) { (n->status_callback)(n); }}while(0)
#else
#define NETIF_STATUS_CALLBACK(n)
#endif /* LWIP_NETIF_STATUS_CALLBACK */
Is there any specific reason that there is no check for valid "n" pointer ? A check is good to have.
Thanks & Best Regards,
Nirav |
[Prev in Thread] | Current Thread | [Next in Thread] |