Commit 8116149a authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

if the adb had ever returned addresses of a family

other than AF_INET or AF_INET6, there would have been a memory leak
parent 8c56932f
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.295 2001/01/11 08:10:47 bwelling Exp $ */
/* $Id: zone.c,v 1.296 2001/01/11 20:31:31 gson Exp $ */
#include <config.h>
......@@ -2428,13 +2428,14 @@ notify_send_toaddr(isc_task_t *task, isc_event_t *event) {
break;
default:
result = ISC_R_NOTIMPLEMENTED;
goto cleanup;
goto cleanup_key;
}
result = dns_request_createvia(notify->zone->view->requestmgr, message,
&src, &notify->dst, 0, key, 15,
notify->zone->task,
notify_done, notify,
&notify->request);
cleanup_key:
if (key != NULL)
dns_tsigkey_detach(&key);
dns_message_destroy(&message);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment