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:
ru 2007-03-08 21:10:53 +00:00
parent 5866261097
commit 42f2b268fd

View File

@ -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