mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
if_clone: don't overwrite dump_nl of an attaching cloner with default
Reviewed by: glebius Differential Revision: https://reviews.freebsd.org/D54190
This commit is contained in:
parent
cdbc9b76ff
commit
ac6a7f6216
1 changed files with 4 additions and 3 deletions
|
|
@ -535,11 +535,12 @@ ifc_attach_cloner(const char *name, struct if_clone_addreq *req)
|
|||
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue