|
From: | Dirk Ziegelmeier |
Subject: | Re: [lwip-devel] Check netif pointer before calling status callback |
Date: | Fri, 23 Dec 2016 22:09:31 +0100 |
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
_______________________________________________
lwip-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-devel
[Prev in Thread] | Current Thread | [Next in Thread] |