Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
86370ee8
Commit
86370ee8
authored
Jul 28, 2000
by
Michael Sawyer
Browse files
Handle axfr's of empty zones correctly.
parent
f91e126d
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/dig/dighost.c
View file @
86370ee8
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dighost.c,v 1.10
3
2000/07/2
7
2
3
:5
2:29 bwelling
Exp $ */
/* $Id: dighost.c,v 1.10
4
2000/07/2
8
2
1
:5
6:53 mws
Exp $ */
/*
* Notice to programmers: Do not use this code as an example of how to
...
...
@@ -1797,7 +1797,20 @@ check_for_more_data(dig_query_t *query, dns_message_t *msg,
dns_rdata_freestruct
(
&
soa
);
goto
next_rdata
;
}
if
(
query
->
lookup
->
rdtype
==
dns_rdatatype_axfr
)
{
debug
(
"doing axfr, got second SOA"
);
dns_rdata_freestruct
(
&
soa
);
goto
xfr_done
;
}
if
(
!
query
->
second_rr_rcvd
)
{
if
(
soa
.
serial
==
query
->
first_rr_serial
)
{
debug
(
"doing ixfr, got "
"empty zone"
);
dns_rdata_freestruct
(
&
soa
);
goto
xfr_done
;
}
debug
(
"this is the second %d"
,
query
->
lookup
->
ixfr_serial
);
query
->
second_rr_rcvd
=
ISC_TRUE
;
...
...
Write
Preview
Markdown
is supported
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