2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

added shutdown callback to client object;

used it to abort outgoing zone transfers on client shutdown
This commit is contained in:
Andreas Gustafsson
2000-01-12 18:01:12 +00:00
parent 4e7f42f159
commit 0c32f6b044
3 changed files with 30 additions and 2 deletions

View File

@@ -208,6 +208,10 @@ client_shutdown(isc_task_t *task, isc_event_t *event) {
CTRACE("shutdown");
client->shuttingdown = ISC_TRUE;
if (client->shutdown != NULL)
(client->shutdown)(client->shutdown_arg);
maybe_free(client);
isc_event_free(&event);
@@ -850,6 +854,8 @@ client_create(ns_clientmgr_t *manager, ns_clienttype_t type,
client->opt = NULL;
client->udpsize = 512;
client->next = NULL;
client->shutdown = NULL;
client->shutdown_arg = NULL;
dns_name_init(&client->signername, NULL);
client->mortal = ISC_FALSE;
client->quota = NULL;