diff options
Diffstat (limited to 'lwip/lwip-util.c')
-rw-r--r-- | lwip/lwip-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lwip/lwip-util.c b/lwip/lwip-util.c index 57a94d52..69991b4c 100644 --- a/lwip/lwip-util.c +++ b/lwip/lwip-util.c @@ -181,7 +181,7 @@ init_ifs (void *arg) /* * Create a new interface and configre IPv4. * - * Fifth parameter (in->name) is a hook. + * Fifth parameter (ifc) is a hook. */ err = netifapi_netif_add (netif, &in->address, &in->netmask, &in->gateway, &ifc, if_init, @@ -189,7 +189,7 @@ init_ifs (void *arg) if (err) { /* The interface failed to init */ - if (netif->state != in->dev_name) + if (netif->state != &ifc) /* It failed after setting the control block, must free it */ mem_free (netif->state); free (netif); |