mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
dns_acl_detach after passing the acl the omapi_listener_listen
This commit is contained in:
parent
5a8c6cd711
commit
01bc26dc4c
1 changed files with 4 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: omapi.c,v 1.9 2000/03/18 00:49:54 tale Exp $ */
|
||||
/* $Id: omapi.c,v 1.10 2000/03/18 02:38:20 tale Exp $ */
|
||||
|
||||
/*
|
||||
* Principal Author: DCL
|
||||
|
|
@ -215,12 +215,14 @@ ns_omapi_listen(omapi_object_t **managerp) {
|
|||
*/
|
||||
result = omapi_object_create(&manager, NULL, 0);
|
||||
|
||||
if (result == ISC_R_SUCCESS)
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
/*
|
||||
* Start listening for connections.
|
||||
*/
|
||||
result = omapi_protocol_listen(manager, &sockaddr, acl, 1,
|
||||
listen_done, ns_g_omapimgr);
|
||||
dns_acl_detach(&acl);
|
||||
}
|
||||
|
||||
if (result == ISC_R_SUCCESS)
|
||||
*managerp = manager;
|
||||
|
|
|
|||
Loading…
Reference in a new issue