lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] Check netif pointer before calling status callback


From: Dirk Ziegelmeier
Subject: Re: [lwip-devel] Check netif pointer before calling status callback
Date: Fri, 23 Dec 2016 22:09:31 +0100

The code is only called in places where there should be no invalid pointer in "n". Did you find a place where the pointer can be invalid?

Ciao
Dirk

12:55 PM, Nirav Desai <address@hidden> wrote:

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]