]> git.ipfire.org Git - thirdparty/bind9.git/commit
Extract code preparing a delegation response to a separate function
authorMichał Kępień <michal@isc.org>
Wed, 8 Aug 2018 05:56:29 +0000 (07:56 +0200)
committerMichał Kępień <michal@isc.org>
Wed, 8 Aug 2018 06:08:40 +0000 (08:08 +0200)
commit8e3fc5725fbfac5817eef9715ef9e70120c4ac81
treef6612cfad9f01eb7882b0ebfbb30e3c3e0b3b3a3
parent7db4dedf6b2f910865ebbc5864134e9345e52c5c
Extract code preparing a delegation response to a separate function

Changes introduced by the previous two commits make the parts of
query_delegation() and query_zone_delegation() which prepare a
delegation response functionally equivalent.  Extract this code into a
separate function, query_prepare_delegation_response(), and then call
the latter from both query_delegation() and query_zone_delegation() in
order to reduce code duplication.  Add a comment describing the purpose
of the extracted code.  Fix coding style issues.
lib/ns/query.c