From: Petr Menšík Date: Wed, 22 Jul 2020 16:55:02 +0000 (+0200) Subject: Prevent crash on dst initialization failure X-Git-Tag: v9.17.4~38^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5e7152cf04f75d0fe00163f076f4cc3cafce259;p=thirdparty%2Fbind9.git Prevent crash on dst initialization failure server might be created, but not yet fully initialized, when fatal function is called. Check both server and task before attaching exclusive task. --- diff --git a/bin/named/server.c b/bin/named/server.c index da1566ebb86..0d9639717ff 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -10116,7 +10116,7 @@ named_server_destroy(named_server_t **serverp) { static void fatal(named_server_t *server, const char *msg, isc_result_t result) { - if (server != NULL) { + if (server != NULL && server->task != NULL) { /* * Prevent races between the OpenSSL on_exit registered * function and any other OpenSSL calls from other tasks