]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #39: In libunbound, leftover logfile is close()d unpredictably.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 17 Jun 2019 10:13:12 +0000 (12:13 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 17 Jun 2019 10:13:12 +0000 (12:13 +0200)
doc/Changelog
libunbound/libunbound.c

index def2dbfcae34dcfd7aa710f14402fa1efb670451..3215249c1f6713afcbd0905087752571c0e93bc8 100644 (file)
@@ -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.
index 5f5a8a10265ca0adbbb8efc7bb8542f1c4218b49..9dd7d6dbeabd5a32fbd51ab756e7b250cb0c025d 100644 (file)
@@ -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();