mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
ng_send_fn() can return with an error, the function of interest
will never be called and OACTIVE will never be reset. Fix this. Submitted by: Vsevolod Lobko MFC after: 3 days
This commit is contained in:
parent
f449d80b7c
commit
2eddfeaaf0
1 changed files with 2 additions and 1 deletions
|
|
@ -277,7 +277,8 @@ ng_eiface_start(struct ifnet *ifp)
|
|||
|
||||
ifp->if_drv_flags |= IFF_DRV_OACTIVE;
|
||||
|
||||
ng_send_fn(priv->node, NULL, &ng_eiface_start2, ifp, 0);
|
||||
if (ng_send_fn(priv->node, NULL, &ng_eiface_start2, ifp, 0) != 0)
|
||||
ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
|
|||
Loading…
Reference in a new issue