]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
neater code.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 21 Feb 2018 13:19:49 +0000 (13:19 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 21 Feb 2018 13:19:49 +0000 (13:19 +0000)
git-svn-id: file:///svn/unbound/trunk@4546 be551aaa-1e26-0410-a405-d3ace91eadb9

iterator/iterator.c

index 9c622283b23a7d0ba800ca4669f88e7ec490424d..266600597f6b77808fd4a3ba448682b7221ff724 100644 (file)
@@ -1162,8 +1162,7 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq,
                         * actual packet in iq->response cleared of RRsets,
                         * the stored prepend RRsets contain the loop contents
                         * with duplicates removed */
-                       iq->state = FINISHED_STATE;
-                       return 1;
+                       return next_state(iq, FINISHED_STATE);
                }
                return error_response(qstate, id, LDNS_RCODE_SERVFAIL);
        }