Evan Hunt
5f3ba36436
convert safe_test
...
(cherry picked from commit c1c8d8846f )
2018-11-14 22:12:47 -08:00
Evan Hunt
5640841732
convert radix_test
...
(cherry picked from commit 718ca3166c )
2018-11-14 22:10:33 -08:00
Evan Hunt
57d78a76e5
convert heap_test
...
(cherry picked from commit cc6ab2416b )
2018-11-14 22:10:14 -08:00
Evan Hunt
f29a9d5bc5
convert parse_test
...
(cherry picked from commit a7c308df9c )
2018-11-14 22:08:50 -08:00
Evan Hunt
856add745a
convert counter_test
...
(cherry picked from commit 52b86f0abe )
2018-11-14 22:08:50 -08:00
Evan Hunt
3095574c1c
convert buffer_test
...
(cherry picked from commit 02a5db7631 )
2018-11-14 22:08:49 -08:00
Evan Hunt
c679b85424
convert aes_test
...
(cherry picked from commit dc88db015b )
2018-11-14 22:08:26 -08:00
Evan Hunt
8db9794322
convert listenlist_test; remove ATF from lib/ns/tests
...
(cherry picked from commit 79ac715763 )
2018-11-14 22:04:39 -08:00
Evan Hunt
fe4619b886
convert notify_test
...
(cherry picked from commit 48dc2831d7 )
2018-11-14 22:04:38 -08:00
Evan Hunt
5b473f87b2
convert query_test
...
- also fixed a bug in openssldh_link.c that turned up in the process
(cherry picked from commit 318b340f5e )
2018-11-14 22:04:38 -08:00
Evan Hunt
1d76da4943
convert resconf_test; remove ATF from lib/irs/tests
...
(cherry picked from commit cec8c52cbe )
2018-11-14 22:04:38 -08:00
Evan Hunt
66fa5b9af6
convert parser_test; remove ATF from lib/isccfg/tests
...
(cherry picked from commit 7ec945bd41 )
2018-11-14 22:04:38 -08:00
Evan Hunt
41831a7d24
assert if {isc,dns,ns}_test_begin() is called when a prior test is running
...
(cherry picked from commit d8766293ab )
2018-11-14 22:04:35 -08:00
Evan Hunt
03c7a096c6
remove .NOTPARALLEL so unit tests can build faster
...
(cherry picked from commit b434b0a4b6 )
2018-11-14 21:54:43 -08:00
Evan Hunt
cd5855378e
add cmocka support to remaining unit test makefiles
...
- also cleaned up some existing test code
(cherry picked from commit 2afd18a2ce )
2018-11-14 21:53:50 -08:00
Mark Andrews
f8b49df8d7
Merge branch 'u/fanf2/optionally-disable-digrc-v9_12' into 'v9_12'
...
U/fanf2/optionally disable digrc v9 12
See merge request isc-projects/bind9!1060
2018-11-14 21:08:01 -05:00
Mark Andrews
5d0426208b
add CHANGES
...
(cherry picked from commit a5524b5fe2 )
2018-11-15 12:59:58 +11:00
Tony Finch and Mark Andrews
2d7969e0a4
dig: a -r option to disable .digrc
...
(cherry picked from commit fdb74fed9e )
2018-11-15 12:59:29 +11:00
Evan Hunt
e322c3ab4a
Merge branch '347-various-bind-9-bugs-in-cleanup-after-fail-scenarios-v9_12' into 'v9_12'
...
Resolve "Various BIND 9 bugs in cleanup-after-fail scenarios"
See merge request isc-projects/bind9!1058
2018-11-14 19:25:16 -05:00
Mark Andrews and Evan Hunt
5c47dd82ac
uninitalize memory read on error path
...
(cherry picked from commit 4eadebe2b2 )
2018-11-15 00:15:33 +00:00
Mark Andrews and Evan Hunt
6b409b89cd
errors initalizing badcaches were not caught or cleaned up on error paths
...
(cherry picked from commit 93776c4c81 )
2018-11-15 00:15:29 +00:00
Mark Andrews
b163281917
Merge branch '688-prefer-kyua-over-aft-run-v9_12' into 'v9_12'
...
Resolve "prefer kyua over aft-run"
See merge request isc-projects/bind9!1051
2018-11-14 16:05:23 -05:00
Mark Andrews
ecf8ede7ea
prefer kyua over atf
...
(cherry picked from commit 590d391bbb )
2018-11-14 15:32:13 -05:00
Evan Hunt
0401840cb1
Merge branch '558-nsupdate-leaks-memory-when-using-gss-tsig-and-receiving-sigterm-at-a-right-time-v9_12' into 'v9_12'
...
Resolve "nsupdate leaks memory when using GSS-TSIG and receiving SIGTERM at a "right" time"
See merge request isc-projects/bind9!1055
2018-11-14 15:00:55 -05:00
Mark Andrews and Evan Hunt
d7c484ac7a
free tmpzonename and restart_master
...
(cherry picked from commit 50714a9b35 )
2018-11-14 11:41:48 -08:00
Evan Hunt
d33cc6e985
Merge branch '675-don-t-use-typename-v9_12' into 'v9_12'
...
Resolve "Don't use 'typename'"
See merge request isc-projects/bind9!1053
2018-11-14 14:17:07 -05:00
Mark Andrews and Evan Hunt
5f9fde54cc
don't use 'typename' as it is reserved in C++
2018-11-14 11:08:44 -08:00
Mark Andrews
73e9dc7e99
Merge branch '584-dig-treats-4-6-m-after-q-argument-as-an-option-but-not-a-domain-name-v9_12' into 'v9_12'
...
Resolve "dig treats -4/-6/-m after -q argument as an option but not a domain name"
See merge request isc-projects/bind9!1046
2018-11-13 20:52:34 -05:00
Evan Hunt and Mark Andrews
1b5f73a25b
style
...
(cherry picked from commit e356d93175 )
2018-11-14 11:55:21 +11:00
Mark Andrews
ba5726ec2f
check that delv -q -m works
...
(cherry picked from commit 77128c867c )
2018-11-14 11:55:21 +11:00
Mark Andrews
b9b8782144
check that dig -q -m works
...
(cherry picked from commit f6f07fb41e )
2018-11-14 11:55:21 +11:00
Mark Andrews
46d80fe979
add -q to dash_opts
...
(cherry picked from commit ba5d28dcfe )
2018-11-14 11:55:21 +11:00
Mark Andrews
999163cd77
dig and mdig failed to properly preparse dash value pairs when value was a seperate argument and started with a dash.
...
(cherry picked from commit 75fa84b67b )
2018-11-14 11:55:20 +11:00
Evan Hunt
ac0eff46e7
Merge branch '587-statistics-channels-xml-v2-is-removed-but-still-documented-v9_12' into 'v9_12'
...
Resolve "statistics-channels /xml/v2 is removed but still documented"
See merge request isc-projects/bind9!1043
2018-11-13 14:09:26 -05:00
Mark Andrews and Evan Hunt
b7d61f8cf7
remove reference to obsolete xml/v2 schema
...
(cherry picked from commit 9e1af0cef1 )
2018-11-13 11:08:39 -08:00
Michał Kępień
53d8c91de3
Merge branch '433-restore-localhost-fallback-in-bin-dig-dighost.c-v9_12' into 'v9_12'
...
[v9_12] Restore localhost fallback in bin/dig/dighost.c
See merge request isc-projects/bind9!1041
2018-11-13 08:52:45 -05:00
Michał Kępień
127f6c7d06
Add CHANGES entry
...
5089. [bug] Restore localhost fallback in dig and host which is
used when no nameserver addresses present in
/etc/resolv.conf are usable due to the requested
address family restrictions. [GL #433 ]
(cherry picked from commit 867bc3399b )
2018-11-13 14:32:51 +01:00
Michał Kępień
8181ffefe7
Restore localhost fallback in bin/dig/dighost.c
...
In BIND 9.11 and earlier, dig and similar tools used liblwres for
parsing /etc/resolv.conf. After getting a list of servers from
liblwres, a tool would check the address family of each server found and
reject those unusable. When the resulting list of usable servers was
empty, localhost addresses were queried as a fallback.
When liblwres was removed in BIND 9.12, dig and similar tools were
updated to parse /etc/resolv.conf using libirs instead. As part of that
process, the localhost fallback was removed from bin/dig/dighost.c since
the localhost fallback built into libirs was deemed to be sufficient.
However, libirs only falls back to localhost if it does not find any
name servers at all; if it does find any valid nameserver entry in
/etc/resolv.conf, it just returns it to the caller because it is
oblivious to whether the caller supports IPv4 and/or IPv6 or not. The
code in bin/dig/dighost.c subsequently filters the returned list of
servers in get_server_list() according to the requested address family
restrictions. This may result in none of the addresses returned by
libirs being usable, in which case a tool will attempt to work with an
empty server list, causing a hang and subsequently a crash upon user
interruption.
Restore the localhost fallback in bin/dig/dighost.c to prevent the
aforementioned hangs and crashes and ensure recent BIND versions behave
identically to the older ones in the circumstances described above.
(cherry picked from commit 18758392da )
2018-11-13 14:32:51 +01:00
Michał Kępień
14b8bf9d87
Merge branch '599-fix-a-shutdown-race-in-diagnostic-tools-v9_12' into 'v9_12'
...
[v9_12] Fix a shutdown race in bin/dig/dighost.c
See merge request isc-projects/bind9!1039
2018-11-13 08:25:13 -05:00
Michał Kępień
e206bf8836
Add CHANGES entry
...
5088. [bug] dig/host/nslookup could crash when interrupted close to
a query timeout. [GL #599 ]
(cherry picked from commit ae40e8039b )
2018-11-13 13:52:21 +01:00
Michał Kępień
9c963ed606
Fix a shutdown race in bin/dig/dighost.c
...
If a tool using the routines defined in bin/dig/dighost.c is sent an
interruption signal around the time a connection timeout is scheduled to
fire, connect_timeout() may be executed after destroy_libs() detaches
from the global task (setting 'global_task' to NULL), which results in a
crash upon a UDP retry due to bringup_timer() attempting to create a
timer with 'task' set to NULL. Fix by preventing connect_timeout() from
attempting a retry when shutdown is in progress.
(cherry picked from commit 4621756596 )
2018-11-13 13:52:21 +01:00
Evan Hunt
9186dba02d
Merge branch 'fix-rules-typo-v9_12' into 'v9_12'
...
fix rules.in typo
See merge request isc-projects/bind9!1037
2018-11-13 03:33:57 -05:00
Evan Hunt
4357852699
fix typo
...
(cherry picked from commit 9671909289 )
2018-11-13 00:24:24 -08:00
Mark Andrews
1e871d6904
Merge branch 'autoheader-v9_12' into 'v9_12'
...
autoheader
See merge request isc-projects/bind9!1032
2018-11-12 18:17:09 -05:00
Mark Andrews
7579f1fb22
autoheader
2018-11-13 10:07:57 +11:00
Mark Andrews
dc14cafe7e
Merge branch 'fix-test-linkages-v9_12' into 'v9_12'
...
Fix test linkages
See merge request isc-projects/bind9!1028
2018-11-12 15:58:59 -05:00
Mark Andrews
97a108f00d
remove lib/isc/tests/result_test as it is now cmocka
...
(cherry picked from commit 9024cf0c15 )
2018-11-13 07:50:13 +11:00
Mark Andrews
4dc0d7eadd
fixup
...
(cherry picked from commit ba0e5ffc09 )
2018-11-13 07:50:11 +11:00
Mark Andrews
433f77a5ef
link in lib/isccc/tests/Kyuafile
...
(cherry picked from commit 9a59352b4c )
2018-11-13 07:49:11 +11:00
Mark Andrews
e4831a81ba
Merge branch 'backport-require-cmocka-greater-than-or-equal-1.0.0' into 'v9_12'
...
require cmocka >= 1.0.0
See merge request isc-projects/bind9!1023
2018-11-12 02:41:22 -05:00