Tony Finch and Witold Kręcicki
d95e2af91c
Correctly report backtrace support when configure finishes
2018-11-13 19:02:04 +00:00
Michał Kępień and Witold Kręcicki
2dc79549a4
Check serve-stale behavior with a cold cache
...
Ensure that serve-stale works as expected when returning stale answers
is enabled, the authoritative server does not respond, and there is no
cached answer available.
2018-11-13 19:02:04 +00:00
Michał Kępień and Witold Kręcicki
5c34e1006d
Check TTL of stale answers
...
Make sure that stale answers returned when the serve-stale feature is
enabled have a TTL matching the value of the stale-answer-ttl setting.
2018-11-13 19:02:04 +00:00
Michał Kępień and Witold Kręcicki
4aae4ac05f
[squash] Rework code preparing a HTTP response for sending in lib/isc/httpd.c
2018-11-13 19:02:04 +00:00
Witold Kręcicki
1911a71fd5
CHANGES entry
2018-11-13 19:02:04 +00:00
Witold Kręcicki
3d58be4c15
Remove vector socket functions from Unix socket code and library headers
...
Remove the following functions in order to simplify socket code:
- isc_socket_recvv()
- isc_socket_sendtov()
- isc_socket_sendtov2()
- isc_socket_sendv()
2018-11-13 19:02:04 +00:00
Witold Kręcicki
a4ec819b3f
Remove vector socket functions from Windows socket code
...
Remove the following functions in order to simplify socket code:
- isc_socket_recvv()
- isc_socket_sendtov()
- isc_socket_sendtov2()
- isc_socket_sendv()
2018-11-13 19:02:04 +00:00
Witold Kręcicki
2f1f4f49b7
Do not use vector socket functions in diagnostic tools
...
Refactor diagnostic tools code to no longer use:
- isc_socket_recvv()
- isc_socket_sendtov2()
- isc_socket_sendv()
as these functions will be removed shortly.
2018-11-13 19:02:04 +00:00
Witold Kręcicki
0fa04a2f0a
Do not use vector socket functions in HTTP server code
...
Refactor code in lib/isc/httpd.c to no longer use isc_socket_sendv() as
this function will be removed shortly.
2018-11-13 19:02:04 +00:00
Mark Andrews and Witold Kręcicki
7db8344162
use new packet for response; rename variable to request and response
2018-11-13 19:02:04 +00:00
Witold Kręcicki
6cf6ef336b
Fix style in catz test
2018-11-13 19:02:04 +00:00
Witold Kręcicki
8b023a3d0e
catz test: wait for dom8.example to be transferred before checking its availability
2018-11-13 19:02:04 +00:00
Evan Hunt and Witold Kręcicki
52d63eeafc
remove config.h references
2018-11-13 19:02:04 +00:00
Evan Hunt
a0de6707c0
silence warning from missing print.h
2018-10-30 08:06:34 -07:00
Ondřej Surý
29e7501bef
Merge branch '84-destroy-task-first-when-destroying-rpzs' into 'master'
...
Destroy updater task first when destroying rpzs.
Closes #84
See merge request isc-projects/bind9!944
2018-10-30 09:02:02 -04:00
Witold Kręcicki and Ondřej Surý
19c4fe93c4
CHANGES entry
2018-10-30 14:01:24 +01:00
Ondřej Surý
c1d111cd2e
Destroy task first when destroying catzs.
...
When freeing catzs structures we need to kill the updater task first.
Otherwise we might race with the updater and there might be a crash
on shutdown.
2018-10-30 14:01:01 +01:00
Witold Kręcicki and Ondřej Surý
541872bf3b
Destroy task first when destroying rpzs.
...
When freeing rpzs structures we need to kill the updater task first.
Otherwise we might race with the updater and there might be a crash
on shutdown.
2018-10-30 14:01:01 +01:00
Michał Kępień
faa52a704f
Merge branch '644-fix-isc_buffer_copyregion-for-auto-reallocated-buffers' into 'master'
...
Fix isc_buffer_copyregion() for auto-reallocated buffers
Closes #644
See merge request isc-projects/bind9!949
2018-10-30 08:52:25 -04:00
Michał Kępień
07050fb49a
Add CHANGES entry
...
5072. [bug] Add unit tests for isc_buffer_copyregion() and fix its
behavior for auto-reallocated buffers. [GL #644 ]
2018-10-30 13:33:25 +01:00
Michał Kępień
e1f0aed034
Fix isc_buffer_copyregion() for auto-reallocated buffers
...
While isc_buffer_copyregion() calls isc_buffer_reserve() to ensure the
target buffer will have enough available space to append the contents of
the source region to it, the variables used for subsequently checking
available space are not updated accordingly after that call. This
prevents isc_buffer_copyregion() from working as expected for
auto-reallocated buffers: ISC_R_NOSPACE will be returned if enough space
is not already available in the target buffer before it is reallocated.
Fix by calling isc_buffer_used() and isc_buffer_availablelength()
directly instead of assigning their return values to local variables.
2018-10-30 13:33:25 +01:00
Michał Kępień
15440d8027
Add unit tests for isc_buffer_copyregion()
...
Add some basic checks for isc_buffer_copyregion() to ensure it behaves
as expected for both fixed-size buffers and buffers which can be
automatically reallocated. Adjust the list of headers included by
lib/isc/tests/buffer_test.c so that it matches what that test program
really uses.
2018-10-30 13:33:25 +01:00
Ondřej Surý
0c23a3b0c0
Merge branch 'ondrej/cleanup-leftover-fatal' into 'master'
...
Remove double result check leftover
See merge request isc-projects/bind9!945
2018-10-30 07:56:51 -04:00
Ondřej Surý
065ff16e40
Remove double result check leftover
2018-10-30 10:30:40 +00:00
Mark Andrews
503e9b70cf
Merge branch '631-dns_rdata_compare-for-nxt-performs-case-sensitive-name-comparison' into 'master'
...
Resolve "dns_rdata_compare() for NXT performs case sensitive name comparison"
Closes #631
See merge request isc-projects/bind9!917
2018-10-29 23:59:52 -04:00
Mark Andrews
921bc89f59
add CHANGES note
2018-10-30 14:51:39 +11:00
Mark Andrews
cf83016682
compare_nxt compared records with identical next fields case insensitively
2018-10-30 14:51:39 +11:00
Mark Andrews
f2368ce181
Merge branch '638-record-types-with-empty-rdata-fields-were-not-being-handled-correctly' into 'master'
...
Resolve "Record types with empty rdata fields were not being handled correctly."
Closes #638
See merge request isc-projects/bind9!919
2018-10-29 20:11:22 -04:00
Mark Andrews
97a680e5ce
document eol
2018-10-30 11:03:02 +11:00
Mark Andrews
2ff57d8a39
Record types which support a empty rdata field were not handling the empty rdata field case.
2018-10-30 11:03:02 +11:00
Witold Krecicki
9ff13b23f7
Merge branch 'wpk-fix-race-in-rpz-with-min-update-interval-0' into 'master'
...
Fix a race in RPZ with min-update-interval set to 0
Closes #643
See merge request isc-projects/bind9!907
2018-10-29 18:12:09 -04:00
Witold Kręcicki
8283cbabdc
<stdlib.h> include in rpz.c for strtoul
2018-10-29 23:04:01 +01:00
Michał Kępień and Witold Kręcicki
139bc2c6ab
Release all resources when shutting down an RPZ zone during an update
...
If an RPZ zone is to be freed during an update, canceling the
update_quantum() event is not enough because the resources released when
an update completes also need to be accounted for. Failure to do this
results in a hang upon shutdown. Fix by copying cleanup code from the
end of update_quantum() to rpz_detach().
2018-10-29 23:04:00 +01:00
Witold Kręcicki
faf2c7711a
Fix a race in RPZ with min-update-interval set to 0
...
If another RPZ update is pending when processing the previous one nears
completion and min-update-interval is set to 0, isc_timer_reset() gets
called with 'interval' set to 0, which triggers an assertion failure.
To prevent such a scenario from causing a crash, queue the update event
directly instead of asking the timer thread to do it.
2018-10-29 23:04:00 +01:00
Witold Krecicki
c3b6eaf3d2
Merge branch '361-forwarding-qname-minimization' into 'master'
...
Resolve "Issue With MR 253 QNAME Minimization"
Closes #361 and #583
See merge request isc-projects/bind9!933
2018-10-29 15:31:00 -04:00
Witold Kręcicki
55a12a4136
Changes
2018-10-29 19:22:31 +00:00
Witold Kręcicki
37df3ca8b6
Style nits
2018-10-29 19:22:10 +00:00
Witold Kręcicki
08460c8cb2
Don't do qname minimization when forwarding; Avoid some intermittent errors in qmin tests caused by timing
2018-10-29 19:22:10 +00:00
Witold Kręcicki
b4ca282589
Test for #361 - forwarding breaks with qname minimization
2018-10-29 19:22:10 +00:00
Evan Hunt
68f1e8e940
Merge branch '642-missing-include' into 'master'
...
added stdatomic.h and md.h
Closes #642
See merge request isc-projects/bind9!936
2018-10-29 14:35:23 -04:00
Evan Hunt
dfe5d3330c
added stdatomic.h and md.h
2018-10-29 11:26:38 -07:00
Evan Hunt
ea9a5e3da4
Merge branch '641-unquoted-rpz' into 'master'
...
allow unquoted response-policy zone names
Closes #641
See merge request isc-projects/bind9!926
2018-10-29 12:41:35 -04:00
Evan Hunt
507230aa88
allow unquoted response-policy zone names
2018-10-29 12:25:35 -04:00
Mark Andrews
c6efbe5d26
Merge branch '635-unchecked-return-in-query-c' into 'master'
...
Resolve "unchecked return in query.c"
Closes #635
See merge request isc-projects/bind9!925
2018-10-29 03:21:26 -04:00
Mark Andrews
e11cfafff2
always call RUNTIME_CHECK(result == ISC_R_SUCCESS); for dns_rdata_tostruct
2018-10-29 03:13:12 -04:00
Mark Andrews
276858d88f
Merge branch '553-socket-c-2171-unexpected-error' into 'master'
...
Resolve "socket.c:2171: unexpected error"
Closes #553
See merge request isc-projects/bind9!924
2018-10-29 02:25:37 -04:00
Mark Andrews
561b780ba0
Only set IPV6_USE_MIN_MTU on IPv6.
2018-10-29 16:49:33 +11:00
Mark Andrews
1454665d70
Merge branch '624-lib-dns-dnstap_test-totext-does-not-work-well-with-softhsm-pkcs11' into 'master'
...
Resolve "lib/dns/dnstap_test:totext does not work well with SoftHSM PKCS11"
Closes #624
See merge request isc-projects/bind9!921
2018-10-29 01:25:05 -04:00
Mark Andrews
1cf1254051
Initalize TZ environment variable before calling dns_test_begin in dnstap_test.
2018-10-29 16:15:52 +11:00
Ondřej Surý
87b042a48d
Merge branch '639-fix-freebsd-build' into 'master'
...
avoid makefile conditional
Closes #639
See merge request isc-projects/bind9!920
2018-10-28 10:18:47 -04:00