From 63a406a432f41e67b17eece7dfb74616778195de Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 10 Sep 2021 15:27:05 +0200 Subject: [PATCH] - Fix more initialisation errors reported by gcc sanitizer. --- doc/Changelog | 1 + testcode/dohclient.c | 2 +- testcode/perf.c | 2 +- testcode/streamtcp.c | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 0e5626563..db318455a 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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 diff --git a/testcode/dohclient.c b/testcode/dohclient.c index 93d84a835..731aa6e13 100644 --- a/testcode/dohclient.c +++ b/testcode/dohclient.c @@ -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"); diff --git a/testcode/perf.c b/testcode/perf.c index b13eca6d3..55d6483c7 100644 --- a/testcode/perf.c +++ b/testcode/perf.c @@ -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)); diff --git a/testcode/streamtcp.c b/testcode/streamtcp.c index 2bd076ee5..ecc83c1cf 100644 --- a/testcode/streamtcp.c +++ b/testcode/streamtcp.c @@ -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) {