diff --git a/sys/net/if_clone.c b/sys/net/if_clone.c --- a/sys/net/if_clone.c +++ b/sys/net/if_clone.c @@ -535,11 +535,12 @@ ifc->create_nl = req2->create_nl_f; ifc->modify_nl = req2->modify_nl_f; - ifc->dump_nl = req2->dump_nl_f; + if (req2->dump_nl_f != NULL) + ifc->dump_nl = req2->dump_nl_f; + else + ifc->dump_nl = ifc_dump_ifp_nl_default; } - ifc->dump_nl = ifc_dump_ifp_nl_default; - if (if_clone_attach(ifc) != 0) return (NULL);