]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix return value and docs for dns_zone_getxfr()
authorAram Sargsyan <aram@isc.org>
Mon, 25 Sep 2023 12:33:29 +0000 (12:33 +0000)
committerAram Sargsyan <aram@isc.org>
Wed, 27 Sep 2023 10:03:40 +0000 (10:03 +0000)
commitf9bcabff244b05692e790d74e5df433f9f1f063d
tree17ac8485c6eaeae390ec2e0b8c15783b3230bb20
parentf1f863dd8185ef70840848fc7f563bfe3bdd90e6
Fix return value and docs for dns_zone_getxfr()

When the given zone is not associated with a zone manager, the function
currently returns ISC_R_NOTFOUND, which is documented as the return
value for the case in which no incoming zone transfer is found.  Make
the function return ISC_R_FAILURE in such a case instead.

Also update the description of the function as the value it returns is
not meant to indicate whether an ongoing incoming transfer for the given
zone exists.  The boolean variables that the function sets via the
pointers provided as its parameters, combined with either keeping
'*xfrp' set to NULL or updating it to a valid pointer, can be used by
the caller to infer all the necessary information.
lib/dns/include/dns/zone.h
lib/dns/zone.c