collect2 version 16.0.1 20260321 (Red Hat 16.0.1-0)
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-redhat-linux/16/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/16/lto-wrapper -plugin-opt=-fresolution=/tmp/ccFPO61t.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s_asneeded -plugin-opt=-pass-through=-latomic_asneeded -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s_asneeded --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 --package-metadata={"type":"rpm","name":"dnsconfd","version":"2.1.0-1.fc45","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:45"} -pie /usr/lib/gcc/x86_64-redhat-linux/16/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/16/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/16/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/16 -L/usr/lib/gcc/x86_64-redhat-linux/16/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/16/../../.. -L/lib -L/usr/lib --version -z relro --as-needed -z pack-relative-relocs -z now --build-id=sha1 --error-rwx-segments --error-execstack -lgcc -lgcc_s_asneeded -latomic_asneeded -lc -lgcc -lgcc_s_asneeded /usr/lib/gcc/x86_64-redhat-linux/16/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/16/../../../../lib64/crtn.o
collect2 version 16.0.1 20260321 (Red Hat 16.0.1-0)
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-redhat-linux/16/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/16/lto-wrapper -plugin-opt=-fresolution=/tmp/ccg3hUG9.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s_asneeded -plugin-opt=-pass-through=-latomic_asneeded -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s_asneeded --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 --package-metadata={"type":"rpm","name":"dnsconfd","version":"2.1.0-1.fc45","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:45"} -pie /usr/lib/gcc/x86_64-redhat-linux/16/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/16/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/16/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/16 -L/usr/lib/gcc/x86_64-redhat-linux/16/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/16/../../.. -L/lib -L/usr/lib --version -z relro --as-needed -z pack-relative-relocs -z now --build-id=sha1 --error-rwx-segments --error-execstack -lgcc -lgcc_s_asneeded -latomic_asneeded -lc -lgcc -lgcc_s_asneeded /usr/lib/gcc/x86_64-redhat-linux/16/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/16/../../../../lib64/crtn.o
Using built-in specs.
COLLECT_GCC=gcc
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,cobol,algol68,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugzilla.redhat.com/ --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-16.0.1-build/gcc-16.0.1-20260321/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none,amdgcn-amdhsa --enable-offload-defaulted --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-tls=gnu2 --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1 --disable-libssp
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.1 20260321 (Red Hat 16.0.1-0) (GCC) 
COLLECT_GCC_OPTIONS='-E' '-v' '-Wno-unknown-pragmas' '-mtune=generic' '-march=x86-64' '-mtls-dialect=gnu2'
 /usr/libexec/gcc/x86_64-redhat-linux/16/cc1 -E -quiet -v - -mtune=generic -march=x86-64 -mtls-dialect=gnu2 -Wno-unknown-pragmas -dumpbase -
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/16/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/16/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/16/include
 /usr/local/include
 /usr/include
End of search list.
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/16/:/usr/libexec/gcc/x86_64-redhat-linux/16/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/16/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/16/:/usr/lib/gcc/x86_64-redhat-linux/16/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/16/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-Wno-unknown-pragmas' '-mtune=generic' '-march=x86-64' '-mtls-dialect=gnu2'
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c: In function ‘get_used_servers’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:466:5: note: (1) entry to ‘update’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:477:10: note: (2) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:478:20: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:478:20: note: (4) calling ‘get_used_servers’ from ‘update’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (5) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (6) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (7) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (6) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:543:5: note: (1) entry to ‘write_resolv_conf’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:567:6: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:572:20: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:577:10: note: (4) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:578:37: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:578:37: note: (6) calling ‘get_used_servers’ from ‘write_resolv_conf’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (7) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (8) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (9) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (8) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:205:5: note: (1) entry to ‘write_configuration’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:209:6: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:215:14: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:218:6: note: (4) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:225:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:225:7: note: (6) calling ‘get_effective_ca’ from ‘write_configuration’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:190:14: note: (7) entry to ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:194:6: note: (8) following ‘true’ branch (when ‘domain_to_servers’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:195:20: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:195:20: note: (10) calling ‘effective_ca_from_uris’ from ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:136:14: note: (11) entry to ‘effective_ca_from_uris’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:146:10: note: (12) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:147:26: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:159:10: note: (14) following ‘true’ branch (when ‘effective_ca’ is NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:160:21: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:167:46: note: (16) following ‘true’ branch (when ‘effective_ca’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:167:25: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:195:20: note: (18) returning to ‘get_effective_ca’ from ‘effective_ca_from_uris’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:198:6: note: (19) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:198:6: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:225:7: note: (21) returning to ‘write_configuration’ from ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:226:6: note: (22) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:230:3: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:237:6: note: (24) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:238:9: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:238:9: note: (26) calling ‘generate_forward_zones’ from ‘write_configuration’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:77:12: note: (27) entry to ‘generate_forward_zones’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:88:10: note: (28) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:89:20: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:89:20: note: (30) calling ‘get_used_servers’ from ‘generate_forward_zones’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (31) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (32) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (33) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (32) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c: In function ‘effective_ca_from_config’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:184:12: warning: use of NULL ‘effective_ca’ where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:176:6: note: (1) following ‘false’ branch (when ‘backup_ca’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:176:6: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:184:12: note: (3) argument 1 (‘effective_ca’) NULL where non-null expected <--[gcc]
In file included from /usr/include/glib-2.0/glib/galloca.h:35, <--[gcc]
                 from /usr/include/glib-2.0/glib.h:32, <--[gcc]
                 from /builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.h:1, <--[gcc]
                 from /builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:1: <--[gcc]
/usr/include/string.h:202:14: note: argument 1 of ‘strdup’ must be non-null <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c: In function ‘get_forward_add_command’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:323:17: note: (1) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: note: (2) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (1) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:373:12: note: (1) entry to ‘add_domain’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:376:27: note: (2) calling ‘get_forward_add_command’ from ‘add_domain’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:320:12: note: (3) entry to ‘get_forward_add_command’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:323:17: note: (4) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: note: (5) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (4) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:466:5: note: (1) entry to ‘update’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:488:7: note: (2) calling ‘get_effective_ca’ from ‘update’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:190:14: note: (3) entry to ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:199:12: note: (4) calling ‘effective_ca_from_config’ from ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:170:14: note: (5) entry to ‘effective_ca_from_config’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:176:6: note: (6) following ‘false’ branch (when ‘backup_ca’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:176:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:199:12: note: (8) returning to ‘get_effective_ca’ from ‘effective_ca_from_config’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:488:7: note: (9) returning to ‘update’ from ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:490:6: note: (10) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:495:47: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:498:6: note: (12) following ‘false’ branch (when the strings are equal)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:504:3: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:505:10: note: (14) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:506:18: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:519:9: note: (16) calling ‘add_domain’ from ‘update’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:373:12: note: (17) entry to ‘add_domain’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:376:27: note: (18) calling ‘get_forward_add_command’ from ‘add_domain’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:320:12: note: (19) entry to ‘get_forward_add_command’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:323:17: note: (20) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: note: (21) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (20) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c: In function ‘write_resolv_conf’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:602:13: warning: leak of FILE ‘fopen(*config.resolv_conf_path, "w")’ [CWE-775] [-Wanalyzer-file-leak] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:566:22: note: (1) opened here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:567:6: note: (2) assuming ‘fopen(*config.resolv_conf_path, "w")’ is non-NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:567:6: note: (3) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:572:20: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:596:6: note: (5) following ‘false’ branch (when ‘first_search != 0’)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:600:3: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:602:13: note: (7) ‘fopen(*config.resolv_conf_path, "w")’ leaks here; was opened at (1) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:602:13: warning: leak of ‘fopen(*config.resolv_conf_path, "w")’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:566:22: note: (1) allocated here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:567:6: note: (2) assuming ‘fopen(*config.resolv_conf_path, "w")’ is non-NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:567:6: note: (3) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:572:20: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:596:6: note: (5) following ‘false’ branch (when ‘first_search != 0’)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:600:3: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:602:13: note: (7) ‘fopen(*config.resolv_conf_path, "w")’ leaks here; was allocated at (1) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c: In function ‘revert_resolv_conf’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:260:63: warning: leak of FILE ‘fopen(*ctx_8(D)->config.resolv_conf_path, "w")’ [CWE-775] [-Wanalyzer-file-leak] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:275:5: note: (1) entry to ‘state_transition’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:281:5: note: (2) following ‘case 5:’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:378:5: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:379:7: note: (4) following ‘case 4:’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:385:9: note: (5) inlined call to ‘set_exit_code’ from ‘state_transition’ <--[gcc]
In function ‘set_exit_code’,
    inlined from ‘state_transition’ at ../src/fsm/fsm.c:385:9:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:269:10: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:269:6: note: (7) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c: In function ‘revert_resolv_conf’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:386:28: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:387:21: note: (9) calling ‘revert_resolv_conf’ from ‘state_transition’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:257:20: note: (10) entry to ‘revert_resolv_conf’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:258:28: note: (11) opened here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:260:6: note: (12) assuming ‘fopen(*ctx_8(D)->config.resolv_conf_path, "w")’ is non-NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:260:6: note: (13) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:260:63: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:260:63: note: (15) ‘fopen(*ctx_8(D)->config.resolv_conf_path, "w")’ leaks here; was opened at (11) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:260:63: warning: leak of ‘fopen(*ctx_8(D)->config.resolv_conf_path, "w")’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:275:5: note: (1) entry to ‘state_transition’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:281:5: note: (2) following ‘case 5:’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:378:5: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:379:7: note: (4) following ‘case 4:’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:385:9: note: (5) inlined call to ‘set_exit_code’ from ‘state_transition’ <--[gcc]
In function ‘set_exit_code’,
    inlined from ‘state_transition’ at ../src/fsm/fsm.c:385:9:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:269:10: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:269:6: note: (7) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c: In function ‘revert_resolv_conf’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:386:28: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:387:21: note: (9) calling ‘revert_resolv_conf’ from ‘state_transition’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:257:20: note: (10) entry to ‘revert_resolv_conf’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:258:28: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:260:6: note: (12) assuming ‘fopen(*ctx_8(D)->config.resolv_conf_path, "w")’ is non-NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:260:6: note: (13) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:260:63: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:260:63: note: (15) ‘fopen(*ctx_8(D)->config.resolv_conf_path, "w")’ leaks here; was allocated at (11) <--[gcc]
In function ‘create_test_server’,
    inlined from ‘test_server_list_to_hash_table_networks_fn’ at ../unittests/test_server_uri.c:131:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
In file included from /builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:3: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c: In function ‘test_server_list_to_hash_table_networks_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:129:12: note: (1) entry to ‘test_server_list_to_hash_table_networks_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:131:22: note: (2) inlined call to ‘create_test_server’ from ‘test_server_list_to_hash_table_networks_fn’ <--[gcc]
In function ‘create_test_server’,
    inlined from ‘test_server_list_to_hash_table_networks_fn’ at ../unittests/test_server_uri.c:131:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:10:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
In function ‘create_test_server’,
    inlined from ‘test_server_list_to_hash_table_sorting_fn’ at ../unittests/test_server_uri.c:96:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c: In function ‘test_server_list_to_hash_table_sorting_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:94:12: note: (1) entry to ‘test_server_list_to_hash_table_sorting_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:96:22: note: (2) inlined call to ‘create_test_server’ from ‘test_server_list_to_hash_table_sorting_fn’ <--[gcc]
In function ‘create_test_server’,
    inlined from ‘test_server_list_to_hash_table_sorting_fn’ at ../unittests/test_server_uri.c:96:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:10:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
In function ‘create_test_server’,
    inlined from ‘test_server_list_to_hash_table_basic_fn’ at ../unittests/test_server_uri.c:70:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c: In function ‘test_server_list_to_hash_table_basic_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:68:12: note: (1) entry to ‘test_server_list_to_hash_table_basic_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:70:22: note: (2) inlined call to ‘create_test_server’ from ‘test_server_list_to_hash_table_basic_fn’ <--[gcc]
In function ‘create_test_server’,
    inlined from ‘test_server_list_to_hash_table_basic_fn’ at ../unittests/test_server_uri.c:70:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:10:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
In function ‘create_test_server’,
    inlined from ‘test_server_list_to_hash_table_sorting_fn’ at ../unittests/test_server_uri.c:99:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c: In function ‘test_server_list_to_hash_table_sorting_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:94:12: note: (1) entry to ‘test_server_list_to_hash_table_sorting_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:99:22: note: (2) inlined call to ‘create_test_server’ from ‘test_server_list_to_hash_table_sorting_fn’ <--[gcc]
In function ‘create_test_server’,
    inlined from ‘test_server_list_to_hash_table_sorting_fn’ at ../unittests/test_server_uri.c:99:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:10:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
In function ‘create_test_server’,
    inlined from ‘test_server_list_to_hash_table_sorting_fn’ at ../unittests/test_server_uri.c:102:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c: In function ‘test_server_list_to_hash_table_sorting_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:94:12: note: (1) entry to ‘test_server_list_to_hash_table_sorting_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:102:22: note: (2) inlined call to ‘create_test_server’ from ‘test_server_list_to_hash_table_sorting_fn’ <--[gcc]
In function ‘create_test_server’,
    inlined from ‘test_server_list_to_hash_table_sorting_fn’ at ../unittests/test_server_uri.c:102:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:10:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:11: warning: nullPointerOutOfMemory(CWE-476): If memory allocation fails, then there is a possible null pointer dereference: server <--[cppcheck]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:12: warning: nullPointerOutOfMemory(CWE-476): If memory allocation fails, then there is a possible null pointer dereference: server <--[cppcheck]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:13: warning: nullPointerOutOfMemory(CWE-476): If memory allocation fails, then there is a possible null pointer dereference: server <--[cppcheck]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c:50: warning: nullPointerOutOfMemory(CWE-476): If memory allocation fails, then there is a possible null pointer dereference: uri <--[cppcheck]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c:265: error: resourceLeak(CWE-775): Resource leak: resolv_conf_file <--[cppcheck]
In file included from /builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:9: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c: In function ‘get_used_servers’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
In file included from /builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:1: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:74:12: note: (1) entry to ‘test_get_used_servers_dnssec_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:82:19: note: (2) calling ‘get_used_servers’ from ‘test_get_used_servers_dnssec_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (3) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (4) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (5) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (4) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:55:12: note: (1) entry to ‘test_get_used_servers_protocol_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:63:19: note: (2) calling ‘get_used_servers’ from ‘test_get_used_servers_protocol_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (3) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (4) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (5) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (4) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:466:5: note: (1) entry to ‘update’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:477:10: note: (2) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:478:20: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:478:20: note: (4) calling ‘get_used_servers’ from ‘update’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (5) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (6) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (7) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (6) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:24:12: note: (1) entry to ‘test_get_used_servers_priority_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:34:19: note: (2) calling ‘get_used_servers’ from ‘test_get_used_servers_priority_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (3) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (4) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (5) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (4) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:159:12: note: (1) entry to ‘test_get_used_servers_interface_exclusive_nonroot_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:161:22: note: (2) calling ‘create_server’ from ‘test_get_used_servers_interface_exclusive_nonroot_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:12:22: note: (3) entry to ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:18:6: note: (4) following ‘true’ branch (when ‘interface’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:5: note: (6) when ‘strncpy’ copies the full source string <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:161:22: note: (7) returning to ‘test_get_used_servers_interface_exclusive_nonroot_fn’ from ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:165:19: note: (8) calling ‘get_used_servers’ from ‘test_get_used_servers_interface_exclusive_nonroot_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (9) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (10) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (11) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (10) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:143:12: note: (1) entry to ‘test_get_used_servers_interface_exclusive_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:145:22: note: (2) calling ‘create_server’ from ‘test_get_used_servers_interface_exclusive_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:12:22: note: (3) entry to ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:18:6: note: (4) following ‘true’ branch (when ‘interface’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:5: note: (6) when ‘strncpy’ copies the full source string <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:145:22: note: (7) returning to ‘test_get_used_servers_interface_exclusive_fn’ from ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:149:19: note: (8) calling ‘get_used_servers’ from ‘test_get_used_servers_interface_exclusive_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (9) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (10) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (11) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (10) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:126:12: note: (1) entry to ‘test_get_used_servers_interface_prefer_nonroot_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:128:22: note: (2) calling ‘create_server’ from ‘test_get_used_servers_interface_prefer_nonroot_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:12:22: note: (3) entry to ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:18:6: note: (4) following ‘true’ branch (when ‘interface’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:5: note: (6) when ‘strncpy’ copies the full source string <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:128:22: note: (7) returning to ‘test_get_used_servers_interface_prefer_nonroot_fn’ from ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:132:19: note: (8) calling ‘get_used_servers’ from ‘test_get_used_servers_interface_prefer_nonroot_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (9) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (10) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (11) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (10) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:110:12: note: (1) entry to ‘test_get_used_servers_interface_prefer_root_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:112:22: note: (2) calling ‘create_server’ from ‘test_get_used_servers_interface_prefer_root_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:12:22: note: (3) entry to ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:18:6: note: (4) following ‘true’ branch (when ‘interface’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:5: note: (6) when ‘strncpy’ copies the full source string <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:112:22: note: (7) returning to ‘test_get_used_servers_interface_prefer_root_fn’ from ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:116:19: note: (8) calling ‘get_used_servers’ from ‘test_get_used_servers_interface_prefer_root_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (9) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (10) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (11) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (10) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:93:12: note: (1) entry to ‘test_get_used_servers_interface_backup_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:95:22: note: (2) calling ‘create_server’ from ‘test_get_used_servers_interface_backup_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:12:22: note: (3) entry to ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:18:6: note: (4) following ‘true’ branch (when ‘interface’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:5: note: (6) when ‘strncpy’ copies the full source string <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:95:22: note: (7) returning to ‘test_get_used_servers_interface_backup_fn’ from ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:99:19: note: (8) calling ‘get_used_servers’ from ‘test_get_used_servers_interface_backup_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (9) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (10) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (11) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (10) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:543:5: note: (1) entry to ‘write_resolv_conf’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:567:6: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:572:20: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:577:10: note: (4) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:578:37: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:578:37: note: (6) calling ‘get_used_servers’ from ‘write_resolv_conf’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (7) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (8) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (9) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (8) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:175:12: note: (1) entry to ‘test_get_used_servers_mixed_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:178:22: note: (2) calling ‘create_server’ from ‘test_get_used_servers_mixed_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:12:22: note: (3) entry to ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:18:6: note: (4) following ‘true’ branch (when ‘interface’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19:5: note: (6) when ‘strncpy’ copies the full source string <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:178:22: note: (7) returning to ‘test_get_used_servers_mixed_fn’ from ‘create_server’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:184:19: note: (8) calling ‘get_used_servers’ from ‘test_get_used_servers_mixed_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (9) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (10) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (11) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (10) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:205:5: note: (1) entry to ‘write_configuration’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:209:6: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:215:14: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:218:6: note: (4) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:225:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:225:7: note: (6) calling ‘get_effective_ca’ from ‘write_configuration’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:190:14: note: (7) entry to ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:194:6: note: (8) following ‘true’ branch (when ‘domain_to_servers’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:195:20: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:195:20: note: (10) calling ‘effective_ca_from_uris’ from ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:136:14: note: (11) entry to ‘effective_ca_from_uris’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:146:10: note: (12) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:147:26: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:159:10: note: (14) following ‘true’ branch (when ‘effective_ca’ is NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:160:21: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:167:46: note: (16) following ‘true’ branch (when ‘effective_ca’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:167:25: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:195:20: note: (18) returning to ‘get_effective_ca’ from ‘effective_ca_from_uris’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:198:6: note: (19) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:198:6: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:225:7: note: (21) returning to ‘write_configuration’ from ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:226:6: note: (22) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:230:3: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:237:6: note: (24) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:238:9: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:238:9: note: (26) calling ‘generate_forward_zones’ from ‘write_configuration’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:77:12: note: (27) entry to ‘generate_forward_zones’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:88:10: note: (28) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:89:20: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:89:20: note: (30) calling ‘get_used_servers’ from ‘generate_forward_zones’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:18:15: note: (31) entry to ‘get_used_servers’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:20:17: note: (32) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:25:18: note: (33) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (32) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c: In function ‘effective_ca_from_config’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:184:12: warning: use of NULL ‘effective_ca’ where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:176:6: note: (1) following ‘false’ branch (when ‘backup_ca’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:176:6: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:184:12: note: (3) argument 1 (‘effective_ca’) NULL where non-null expected <--[gcc]
In file included from /usr/include/check.h:26: <--[gcc]
/usr/include/string.h:202:14: note: argument 1 of ‘strdup’ must be non-null <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c: In function ‘get_forward_add_command’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:323:17: note: (1) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: note: (2) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (1) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:373:12: note: (1) entry to ‘add_domain’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:376:27: note: (2) calling ‘get_forward_add_command’ from ‘add_domain’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:320:12: note: (3) entry to ‘get_forward_add_command’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:323:17: note: (4) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: note: (5) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (4) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: warning: check of ‘servers’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:466:5: note: (1) entry to ‘update’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:488:7: note: (2) calling ‘get_effective_ca’ from ‘update’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:190:14: note: (3) entry to ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:199:12: note: (4) calling ‘effective_ca_from_config’ from ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:170:14: note: (5) entry to ‘effective_ca_from_config’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:176:6: note: (6) following ‘false’ branch (when ‘backup_ca’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:176:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:199:12: note: (8) returning to ‘get_effective_ca’ from ‘effective_ca_from_config’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:488:7: note: (9) returning to ‘update’ from ‘get_effective_ca’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:490:6: note: (10) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:495:47: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:498:6: note: (12) following ‘false’ branch (when the strings are equal)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:504:3: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:505:10: note: (14) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:506:18: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:519:9: note: (16) calling ‘add_domain’ from ‘update’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:373:12: note: (17) entry to ‘add_domain’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:376:27: note: (18) calling ‘get_forward_add_command’ from ‘add_domain’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:320:12: note: (19) entry to ‘get_forward_add_command’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:323:17: note: (20) pointer ‘servers’ is dereferenced here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:340:18: note: (21) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (20) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c: In function ‘write_resolv_conf’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:602:13: warning: leak of FILE ‘fopen(*config.resolv_conf_path, "w")’ [CWE-775] [-Wanalyzer-file-leak] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:566:22: note: (1) opened here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:567:6: note: (2) assuming ‘fopen(*config.resolv_conf_path, "w")’ is non-NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:567:6: note: (3) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:572:20: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:596:6: note: (5) following ‘false’ branch (when ‘first_search != 0’)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:600:3: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:602:13: note: (7) ‘fopen(*config.resolv_conf_path, "w")’ leaks here; was opened at (1) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:602:13: warning: leak of ‘fopen(*config.resolv_conf_path, "w")’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:566:22: note: (1) allocated here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:567:6: note: (2) assuming ‘fopen(*config.resolv_conf_path, "w")’ is non-NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:567:6: note: (3) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:572:20: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:596:6: note: (5) following ‘false’ branch (when ‘first_search != 0’)... <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:600:3: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c:602:13: note: (7) ‘fopen(*config.resolv_conf_path, "w")’ leaks here; was allocated at (1) <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_mixed_fn’ at ../unittests/test_unbound_manager.c:177:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c: In function ‘test_get_used_servers_mixed_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:175:12: note: (1) entry to ‘test_get_used_servers_mixed_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:177:22: note: (2) inlined call to ‘create_server’ from ‘test_get_used_servers_mixed_fn’ <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_mixed_fn’ at ../unittests/test_unbound_manager.c:177:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:14:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_dnssec_fn’ at ../unittests/test_unbound_manager.c:76:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c: In function ‘test_get_used_servers_dnssec_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:74:12: note: (1) entry to ‘test_get_used_servers_dnssec_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:76:22: note: (2) inlined call to ‘create_server’ from ‘test_get_used_servers_dnssec_fn’ <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_dnssec_fn’ at ../unittests/test_unbound_manager.c:76:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:14:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_protocol_fn’ at ../unittests/test_unbound_manager.c:57:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c: In function ‘test_get_used_servers_protocol_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:55:12: note: (1) entry to ‘test_get_used_servers_protocol_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:57:22: note: (2) inlined call to ‘create_server’ from ‘test_get_used_servers_protocol_fn’ <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_protocol_fn’ at ../unittests/test_unbound_manager.c:57:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:14:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_priority_fn’ at ../unittests/test_unbound_manager.c:26:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c: In function ‘test_get_used_servers_priority_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:24:12: note: (1) entry to ‘test_get_used_servers_priority_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:26:22: note: (2) inlined call to ‘create_server’ from ‘test_get_used_servers_priority_fn’ <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_priority_fn’ at ../unittests/test_unbound_manager.c:26:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:14:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_dnssec_fn’ at ../unittests/test_unbound_manager.c:77:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c: In function ‘test_get_used_servers_dnssec_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:74:12: note: (1) entry to ‘test_get_used_servers_dnssec_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:77:22: note: (2) inlined call to ‘create_server’ from ‘test_get_used_servers_dnssec_fn’ <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_dnssec_fn’ at ../unittests/test_unbound_manager.c:77:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:14:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_protocol_fn’ at ../unittests/test_unbound_manager.c:58:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c: In function ‘test_get_used_servers_protocol_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:55:12: note: (1) entry to ‘test_get_used_servers_protocol_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:58:22: note: (2) inlined call to ‘create_server’ from ‘test_get_used_servers_protocol_fn’ <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_protocol_fn’ at ../unittests/test_unbound_manager.c:58:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:14:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_priority_fn’ at ../unittests/test_unbound_manager.c:27:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c: In function ‘test_get_used_servers_priority_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:24:12: note: (1) entry to ‘test_get_used_servers_priority_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:27:22: note: (2) inlined call to ‘create_server’ from ‘test_get_used_servers_priority_fn’ <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_priority_fn’ at ../unittests/test_unbound_manager.c:27:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:14:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c: In function ‘create_server’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:14:26: note: (1) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: note: (2) ‘server’ could be NULL: unchecked value from (1) <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_priority_fn’ at ../unittests/test_unbound_manager.c:28:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: warning: dereference of possibly-NULL ‘server’ [CWE-690] [-Wanalyzer-possible-null-dereference] <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c: In function ‘test_get_used_servers_priority_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:24:12: note: (1) entry to ‘test_get_used_servers_priority_fn’ <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:28:22: note: (2) inlined call to ‘create_server’ from ‘test_get_used_servers_priority_fn’ <--[gcc]
In function ‘create_server’,
    inlined from ‘test_get_used_servers_priority_fn’ at ../unittests/test_unbound_manager.c:28:22:
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:14:26: note: (3) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15:20: note: (4) ‘server’ could be NULL: unchecked value from (3) <--[gcc]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:15: warning: nullPointerOutOfMemory(CWE-476): If memory allocation fails, then there is a possible null pointer dereference: server <--[cppcheck]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:16: warning: nullPointerOutOfMemory(CWE-476): If memory allocation fails, then there is a possible null pointer dereference: server <--[cppcheck]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:17: warning: nullPointerOutOfMemory(CWE-476): If memory allocation fails, then there is a possible null pointer dereference: server <--[cppcheck]
/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c:19: warning: nullPointerOutOfMemory(CWE-476): If memory allocation fails, then there is a possible null pointer dereference: server <--[cppcheck]
