mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
netif: Don't return error if pass NULL netif_input_fn to netif_add
The new NULL checking against netif_input_fn make ppp stop working because in ppp_new() it calls netif_add with NULL netif_input_fn. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
3f2227f04c
commit
61e3f49f69
@ -294,7 +294,6 @@ netif_add(struct netif *netif,
|
|||||||
|
|
||||||
LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL);
|
LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL);
|
||||||
LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL);
|
LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL);
|
||||||
LWIP_ERROR("netif_add: No input function given", input != NULL, return NULL);
|
|
||||||
|
|
||||||
#if LWIP_IPV4
|
#if LWIP_IPV4
|
||||||
if (ipaddr == NULL) {
|
if (ipaddr == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user