Possible Bug with IP_IS_V4 definition?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Possible Bug with IP_IS_V4 definition?

antonio
Hi all,
I might be wrong, but I believe this is a bug in file ip_addr.h with the
definition of IP_IS_V4.
if ipaddr is NULL, this definition will fail.

#define IP_IS_V4(ipaddr)              (((ipaddr) == NULL) ||
IP_IS_V4_VAL(*(ipaddr)))
#define IP_IS_V4_VAL(ipaddr)          (IP_GET_TYPE(&ipaddr) ==
IPADDR_TYPE_V4)





--
Sent from: http://lwip.100.n7.nabble.com/lwip-devel-f11621.html

_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel