mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 16:30:00 -04:00
Merge branch 'each-interface-magic-v9_18' into 'v9_18'
when creating an interface, set magic before linking See merge request isc-projects/bind9!6736
This commit is contained in:
commit
d245253eb8
1 changed files with 2 additions and 2 deletions
|
|
@ -477,12 +477,12 @@ interface_create(ns_interfacemgr_t *mgr, isc_sockaddr_t *addr, const char *name,
|
|||
ISC_LINK_INIT(ifp, link);
|
||||
|
||||
ns_interfacemgr_attach(mgr, &ifp->mgr);
|
||||
ifp->magic = IFACE_MAGIC;
|
||||
|
||||
LOCK(&mgr->lock);
|
||||
ISC_LIST_APPEND(mgr->interfaces, ifp, link);
|
||||
UNLOCK(&mgr->lock);
|
||||
|
||||
ifp->magic = IFACE_MAGIC;
|
||||
|
||||
*ifpret = ifp;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue