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
c68421ff
Commit
c68421ff
authored
Nov 04, 1999
by
Michael Graff
Browse files
clean up selection of which fetch is which in combined callback for A/AAAA
parent
f788a570
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/adb.c
View file @
c68421ff
...
...
@@ -2922,20 +2922,21 @@ fetch_callback(isc_task_t *task, isc_event_t *ev)
bucket
=
name
->
lock_bucket
;
LOCK
(
&
adb
->
namelocks
[
bucket
]);
INSIST
(
name
->
fetch_a
!=
NULL
||
name
->
fetch_aaaa
!=
NULL
);
INSIST
(
NAME_FETCH_A
(
name
)
||
NAME_FETCH_AAAA
(
name
)
);
address_type
=
0
;
if
(
NAME_FETCH_A
(
name
))
{
if
(
name
->
fetch_a
->
fetch
==
dev
->
fetch
)
{
address_type
=
DNS_ADBFIND_INET
;
fetch
=
name
->
fetch_a
;
name
->
fetch_a
=
NULL
;
}
}
else
if
(
NAME_FETCH_AAAA
(
name
))
{
if
(
name
->
fetch_aaaa
->
fetch
==
dev
->
fetch
)
{
address_type
=
DNS_ADBFIND_INET6
;
fetch
=
name
->
fetch_aaaa
;
name
->
fetch_aaaa
=
NULL
;
}
if
(
NAME_FETCH_A
(
name
)
&&
(
name
->
fetch_a
->
fetch
==
dev
->
fetch
))
{
address_type
=
DNS_ADBFIND_INET
;
fetch
=
name
->
fetch_a
;
name
->
fetch_a
=
NULL
;
}
else
if
(
NAME_FETCH_AAAA
(
name
)
&&
(
name
->
fetch_aaaa
->
fetch
==
dev
->
fetch
))
{
address_type
=
DNS_ADBFIND_INET6
;
fetch
=
name
->
fetch_aaaa
;
name
->
fetch_aaaa
=
NULL
;
}
if
(
address_type
==
0
)
{
DP
(
1
,
"fetch %p, _a %p, _aaaa %p, name %p"
,
dev
->
fetch
,
name
->
fetch_a
,
name
->
fetch_aaaa
,
name
);
}
INSIST
(
address_type
!=
0
);
...
...
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