From: W.C.A. Wijngaards Date: Mon, 17 Jun 2019 10:13:12 +0000 (+0200) Subject: - Fix #39: In libunbound, leftover logfile is close()d unpredictably. X-Git-Tag: release-1.9.3rc1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ec96d8f07247bccec40ae84dc875cf74dcd5f96;p=thirdparty%2Funbound.git - Fix #39: In libunbound, leftover logfile is close()d unpredictably. --- diff --git a/doc/Changelog b/doc/Changelog index def2dbfca..3215249c1 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 17 June 2019: Wouter - Master contains version 1.9.3 in development. + - Fix #39: In libunbound, leftover logfile is close()d unpredictably. 12 June 2019: Wouter - Fix another spoolbuf storage code point, in prefetch. diff --git a/libunbound/libunbound.c b/libunbound/libunbound.c index 5f5a8a102..9dd7d6dbe 100644 --- a/libunbound/libunbound.c +++ b/libunbound/libunbound.c @@ -328,6 +328,8 @@ ub_ctx_delete(struct ub_ctx* ctx) ub_randfree(ctx->seed_rnd); alloc_clear(&ctx->superalloc); traverse_postorder(&ctx->queries, delq, NULL); + if(ctx->logfile_override) + log_file(NULL); free(ctx); #ifdef USE_WINSOCK WSACleanup();