diff --git a/bin/named/include/named/globals.h b/bin/named/include/named/globals.h index 9ada34a768..a739df0ed8 100644 --- a/bin/named/include/named/globals.h +++ b/bin/named/include/named/globals.h @@ -98,8 +98,6 @@ EXTERN const char *named_g_conffile INIT(NAMED_SYSCONFDIR "/named.conf"); EXTERN const char *named_g_defaultbindkeys INIT(NULL); EXTERN const char *named_g_keyfile INIT(NAMED_SYSCONFDIR "/rndc.key"); -EXTERN dns_tsigkey_t *named_g_sessionkey INIT(NULL); -EXTERN dns_name_t named_g_sessionkeyname; EXTERN bool named_g_conffileset INIT(false); EXTERN cfg_aclconfctx_t *named_g_aclconfctx INIT(NULL); diff --git a/bin/named/server.c b/bin/named/server.c index 35b3ac9253..9ec95d6da6 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -9730,10 +9730,6 @@ shutdown_server(void *arg) { dns_zonemgr_shutdown(server->zonemgr); - if (named_g_sessionkey != NULL) { - dns_tsigkey_detach(&named_g_sessionkey); - dns_name_free(&named_g_sessionkeyname, server->mctx); - } #if defined(HAVE_GEOIP2) named_geoip_shutdown(); #endif /* HAVE_GEOIP2 */