diff options
author | Joan Lledó <joanlluislledo@gmail.com> | 2019-03-31 19:55:38 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-03-31 20:01:00 +0200 |
commit | 79c0f932c5465971b1de55672901b5920bab3c6b (patch) | |
tree | ace49875ccd57a8b3e85eb923661b5cf6345b824 /lwip/port/netif | |
parent | 8619aea268c1bda2a536a65d8fbc24c4bcb9d239 (diff) | |
download | hurd-79c0f932c5465971b1de55672901b5920bab3c6b.tar.gz hurd-79c0f932c5465971b1de55672901b5920bab3c6b.tar.bz2 hurd-79c0f932c5465971b1de55672901b5920bab3c6b.zip |
lwip: Fix wrong error checks
* lwip/lwip-util.c: init_ifs():
* Check for the value of ifc instead of in->dev_name
* lwip/port/netif/ifcommon.c:
* if_init(), if_terminate(): Check for null on ifc instead of netif
Message-Id: <20190331175541.7095-2-jlledom@member.fsf.org>
Diffstat (limited to 'lwip/port/netif')
-rw-r--r-- | lwip/port/netif/ifcommon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lwip/port/netif/ifcommon.c b/lwip/port/netif/ifcommon.c index 11ede76d..c6179683 100644 --- a/lwip/port/netif/ifcommon.c +++ b/lwip/port/netif/ifcommon.c @@ -75,7 +75,7 @@ if_init (struct netif * netif) { struct ifcommon *ifc = netif_get_state (netif); - if (netif == NULL) + if (ifc == NULL) /* The user provided no interface */ return -1; @@ -89,7 +89,7 @@ if_terminate (struct netif * netif) error_t err; struct ifcommon *ifc = netif_get_state (netif); - if (netif == NULL) + if (ifc == NULL) /* The user provided no interface */ return -1; |