Relese the interface in the last.
Reviewed by: glebius Approved by: re (kib)
This commit is contained in:
parent
3aaea6efd5
commit
1f6addd92c
@ -1605,12 +1605,12 @@ carp_free_if(struct carp_if *cif)
|
||||
|
||||
IF_ADDR_WLOCK(ifp);
|
||||
ifp->if_carp = NULL;
|
||||
if_rele(ifp);
|
||||
IF_ADDR_WUNLOCK(ifp);
|
||||
|
||||
CIF_LOCK_DESTROY(cif);
|
||||
|
||||
ifpromisc(ifp, 0);
|
||||
if_rele(ifp);
|
||||
|
||||
free(cif, M_CARP);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user