]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Reuse new function from rt46864 for similar block elsewhere.
authorPetr Menšík <pemensik@redhat.com>
Wed, 17 Jan 2018 18:43:12 +0000 (19:43 +0100)
committerEvan Hunt <each@isc.org>
Fri, 23 Feb 2018 21:52:43 +0000 (13:52 -0800)
(cherry picked from commit e7a93321f095c8a2018df253a38bd1fc40d639cd)
(cherry picked from commit cb98ce8e676990807184e21139d5bf2a63c1890b)

lib/dns/resolver.c

index 243387c892d9a68e9afe1b43ab511a8c4a1eb853..145dd664180bea52deaac6d8738e6c1a05eb1470 100644 (file)
@@ -3735,10 +3735,7 @@ fctx_try(fetchctx_t *fctx, isc_boolean_t retrying, isc_boolean_t badcache) {
        if (addrinfo == NULL) {
                /* We have no more addresses.  Start over. */
                fctx_cancelqueries(fctx, ISC_TRUE, ISC_FALSE);
-               fctx_cleanupfinds(fctx);
-               fctx_cleanupaltfinds(fctx);
-               fctx_cleanupforwaddrs(fctx);
-               fctx_cleanupaltaddrs(fctx);
+               fctx_cleanupall(fctx);
                result = fctx_getaddresses(fctx, badcache);
                if (result == DNS_R_WAIT) {
                        /*