]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix a bug in resolver's resume_dslookup() function
authorAram Sargsyan <aram@isc.org>
Wed, 1 Feb 2023 14:41:58 +0000 (14:41 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Tue, 7 Feb 2023 10:41:21 +0000 (10:41 +0000)
commit410fcbfcfe7ceb100f309695a6a7d9e9536b8296
tree9167f47f3bb3918b04d66d3f8c4168a04d86ac69
parent351aef8c3ae159219e91b9410785660dd7f79187
Fix a bug in resolver's resume_dslookup() function

A recent refactoring in 7e4e125e5ea5b29c946ce4646461d06a75cd8702
had introduced a logical error which could result in calling the
dns_resolver_createfetch() function with 'nameservers' pointer set
to NULL, but with 'domain' not set to NULL, which is not allowed
by the function.

Make sure 'domain' is set only when 'nsrdataset' is valid.
lib/dns/resolver.c