]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't cleanup uninitialized dns_resolver buckets
authorOndřej Surý <ondrej@isc.org>
Tue, 3 Jan 2023 09:33:23 +0000 (10:33 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 3 Jan 2023 09:33:23 +0000 (10:33 +0100)
commitd48f5e253fd3a09f3cd9dc1bfbb6ee6291f1a18a
tree3f0f24fcdbc0f914a9ef8f9dd08050e83e0c2d98
parent04d4a608b84e739d135c5484041dae608e1e02d2
Don't cleanup uninitialized dns_resolver buckets

If the isc_task_create_bound() fails in the middle of buckets
initialization - the most common case would be shutdown initialized
during reload, not all tasks would be initialized, but the cleanup
code would try to cleanup all buckets.

Make sure that we cleanup only the initialized buckets by setting
ntasks to the number of already initialized tasks on the error path.
lib/dns/resolver.c