Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
845e0b5f
Commit
845e0b5f
authored
Jul 03, 2000
by
Mark Andrews
Browse files
303. [bug] add additional sanity checks to differentiate a AXFR
response vs a IXFR response. (RT #157)
parent
b6747cf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
845e0b5f
303. [bug] add additional sanity checks to differentiate a AXFR
response vs a IXFR response. (RT #157)
302. [bug] MXNAME should be large enough to hold any legal domain
name in presentation format + terminating NULL.
...
...
lib/dns/xfrin.c
View file @
845e0b5f
...
...
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: xfrin.c,v 1.
79
2000/0
6/23 00:29:20 tale
Exp $ */
/* $Id: xfrin.c,v 1.
80
2000/0
7/03 13:33:05 marka
Exp $ */
#include
<config.h>
...
...
@@ -443,7 +443,9 @@ xfr_rr(dns_xfrin_ctx_t *xfr, dns_name_t *name, isc_uint32_t ttl,
* If the transfer begins with one SOA record, it is an AXFR,
* if it begins with two SOAs, it is an IXFR.
*/
if
(
rdata
->
type
==
dns_rdatatype_soa
)
{
if
(
xfr
->
reqtype
==
dns_rdatatype_ixfr
&&
rdata
->
type
==
dns_rdatatype_soa
&&
xfr
->
ixfr
.
request_serial
==
dns_soa_getserial
(
rdata
))
{
xfrin_log
(
xfr
,
ISC_LOG_DEBUG
(
3
),
"got incremental response"
);
CHECK
(
ixfr_init
(
xfr
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment