]> git.ipfire.org Git - thirdparty/bind9.git/commit
dighost.c: don't call check_if_done() twice successively
authorAram Sargsyan <aram@isc.org>
Tue, 2 May 2023 12:24:34 +0000 (12:24 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Wed, 10 May 2023 11:35:51 +0000 (11:35 +0000)
commite4604b71d2b41de4e3bf22f07fdd3d324fdd0a7a
treeb5afb601522d2f583b891f33d069a612c928eaba
parentad6713f2ae2608195812c3ae09f311ddb3ee1c47
dighost.c: don't call check_if_done() twice successively

The check_if_done() function can pass control back out to
dighost_shutdown() (which is part of dig.c, host.c, or nslookup.c),
and calling that twice can cause unexpected problems, if it is not
designed to be idempotent.

Since cancel_lookup() calls check_if_done() implicitly, don't call
check_if_done() again when 'next' is NULL.
bin/dig/dighost.c