diff options
author | trociny <trociny@FreeBSD.org> | 2013-09-08 18:19:40 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2013-09-08 18:19:40 +0000 |
commit | 4233132eb4a78d29b37be834e3b762f5d86e123a (patch) | |
tree | 6dc7467a8add8ef29e104537042ae1c59ed43287 | |
parent | 56cc6860588a887bdad5d45e3e73e38a523b6c52 (diff) | |
download | FreeBSD-src-4233132eb4a78d29b37be834e3b762f5d86e123a.zip FreeBSD-src-4233132eb4a78d29b37be834e3b762f5d86e123a.tar.gz |
Relese the interface in the last.
Reviewed by: glebius
Approved by: re (kib)
-rw-r--r-- | sys/netinet/ip_carp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 436385d..a170e34 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -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); } |