From 01bc26dc4c8521f8a0813d4189d2e5de68d8e238 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Sat, 18 Mar 2000 02:38:20 +0000 Subject: [PATCH] dns_acl_detach after passing the acl the omapi_listener_listen --- bin/named/omapi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/named/omapi.c b/bin/named/omapi.c index e59fb5f29b..3107a02985 100644 --- a/bin/named/omapi.c +++ b/bin/named/omapi.c @@ -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;