]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix more initialisation errors reported by gcc sanitizer.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 10 Sep 2021 13:27:05 +0000 (15:27 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 10 Sep 2021 13:27:05 +0000 (15:27 +0200)
doc/Changelog
testcode/dohclient.c
testcode/perf.c
testcode/streamtcp.c

index 0e56265632f1bd51594cc97cb10582ef5c5f0971..db318455a3b58f21788fa6537092b6ff7257ee2b 100644 (file)
@@ -1,6 +1,7 @@
 10 September 2021: Wouter
        - Fix initialisation errors reported by gcc sanitizer.
        - Fix lock debug code for gcc sanitizer reports.
+       - Fix more initialisation errors reported by gcc sanitizer.
 
 8 September 2021: Wouter
        - Merged #41 from Moritz Schneider: made outbound-msg-retry
index 93d84a83550d7366304ed77d887ec4c12204037d..731aa6e1362acc087eed128d379bd39cf2c56f6c 100644 (file)
@@ -571,8 +571,8 @@ int main(int argc, char** argv)
                return 1;
        }
 #endif
-       log_init(0, 0, 0);
        checklock_start();
+       log_init(0, 0, 0);
 
        h2_session = http2_session_create();
        if(!h2_session) fatal_exit("out of memory");
index b13eca6d3946b3ab9184f3020714a0fb8b1a1b3f..55d6483c7cf911b40b40c5d9bc3b355d44f59309 100644 (file)
@@ -575,9 +575,9 @@ int main(int argc, char* argv[])
        memset(&info, 0, sizeof(info));
        info.io_num = 16;
 
+       checklock_start();
        log_init(NULL, 0, NULL);
        log_ident_set("perf");
-       checklock_start();
 #ifdef USE_WINSOCK
        if((r = WSAStartup(MAKEWORD(2,2), &wsa_data)) != 0)
                fatal_exit("WSAStartup failed: %s", wsa_strerror(r));
index 2bd076ee5db2af69aaab34982b544052f539b771..ecc83c1cff30dbe1973977aabd6f9b567e6e72e0 100644 (file)
@@ -437,8 +437,8 @@ int main(int argc, char** argv)
 #endif
 
        /* lock debug start (if any) */
-       log_init(0, 0, 0);
        checklock_start();
+       log_init(0, 0, 0);
 
 #ifdef SIGPIPE
        if(signal(SIGPIPE, &sigh) == SIG_ERR) {