mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix a panic when VIMAGE is enabled.
Spotted by: Nikos Vassiliadis
This commit is contained in:
parent
59333867ff
commit
1c27e6c39f
1 changed files with 2 additions and 0 deletions
|
|
@ -3065,9 +3065,11 @@ bridge_state_change(struct ifnet *ifp, int state)
|
|||
"discarding"
|
||||
};
|
||||
|
||||
CURVNET_SET(ifp->if_vnet);
|
||||
if (V_log_stp)
|
||||
log(LOG_NOTICE, "%s: state changed to %s on %s\n",
|
||||
sc->sc_ifp->if_xname, stpstates[state], ifp->if_xname);
|
||||
CURVNET_RESTORE();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue