diff --git a/sys/net/if.c b/sys/net/if.c index f0b11b332767..fa55662b4233 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -2206,7 +2206,7 @@ do_link_state_change(void *arg, int pending) if (log_link_state_change) log(LOG_NOTICE, "%s: link state changed to %s\n", ifp->if_xname, (link_state == LINK_STATE_UP) ? "UP" : "DOWN" ); - EVENTHANDLER_INVOKE(ifnet_link_event, ifp, ifp->if_link_state); + EVENTHANDLER_INVOKE(ifnet_link_event, ifp, link_state); CURVNET_RESTORE(); }