]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix initialisation errors reported by gcc sanitizer.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 10 Sep 2021 12:30:57 +0000 (14:30 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 10 Sep 2021 12:30:57 +0000 (14:30 +0200)
doc/Changelog
services/rpz.c
testcode/testbound.c
testcode/unitmain.c

index 135c879ed654f15046436ea22b5c5dcedcef7913..e31dbfe03232ce20bcc98aefe4d5f298ec187809 100644 (file)
@@ -1,3 +1,6 @@
+10 September 2021: Wouter
+       - Fix initialisation errors reported by gcc sanitizer.
+
 8 September 2021: Wouter
        - Merged #41 from Moritz Schneider: made outbound-msg-retry
          configurable.
index 57b22d312445d5ac916117801c9e5e3a2c9a6565..434660686bbe3685b81eae20e57f59b8604ccddc 100644 (file)
@@ -2105,7 +2105,7 @@ rpz_callback_from_iterator_module(struct module_qstate* ms, struct iter_qstate*
        struct auth_zones* az;
        struct auth_zone* a;
        struct clientip_synthesized_rr* raddr = NULL;
-       struct rpz* r;
+       struct rpz* r = NULL;
        struct local_zone* z = NULL;
        struct matched_delegation_point match = {0};
 
index 66299d693419861515f68fb63bd01afcb9fe97ec..ec627cc8deb15cf248f5831e25071c9763a296c9 100644 (file)
@@ -374,6 +374,7 @@ main(int argc, char* argv[])
        (void)unsetenv("NOTIFY_SOCKET");
 #endif /* HAVE_SYSTEMD */
 
+       checklock_start();
        log_init(NULL, 0, NULL);
        /* determine commandline options for the daemon */
        pass_argc = 1;
index c18be7be3a089ccc575b769ada954bac6637d537..16aa8845021034c3fdd11ddb88e712abecebf58d 100644 (file)
@@ -861,6 +861,7 @@ void ecdsa_evp_workaround_init(void);
 int 
 main(int argc, char* argv[])
 {
+       checklock_start();
        log_init(NULL, 0, NULL);
        if(argc != 1) {
                printf("usage: %s\n", argv[0]);
@@ -888,7 +889,6 @@ main(int argc, char* argv[])
        if(NSS_NoDB_Init(".") != SECSuccess)
                fatal_exit("could not init NSS");
 #endif /* HAVE_SSL or HAVE_NSS*/
-       checklock_start();
        authzone_test();
        neg_test();
        rnd_test();