Commit c5e7152c authored by Petr Menšík's avatar Petr Menšík Committed by Mark Andrews

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.
parent 064e314d
......@@ -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
......
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