]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
rpz: update ext_state in the iterator
authormb <mb@64k.by>
Tue, 24 Nov 2020 10:33:16 +0000 (11:33 +0100)
committermb <mb@64k.by>
Tue, 24 Nov 2020 10:33:16 +0000 (11:33 +0100)
iterator/iterator.c
services/rpz.c

index 609786a1668236e3d062c396f8193e0fb0bbacd8..6655ec8757bea7655911d2128574f67277b850db 100644 (file)
@@ -2476,6 +2476,7 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq,
                if(forged_response != NULL) {
                        iq->response = forged_response;
                        next_state(iq, FINISHED_STATE);
+                       qstate->ext_state[id] = module_finished;
                        return 0;
                }
        }
index acf2b8848e3fcf3f8ae6657ff4e4ba3254ff5a40..fb219ab093d8348adf7e7b4affe481abe3e8a084 100644 (file)
@@ -1448,7 +1448,7 @@ rpz_patch_nodata(struct rpz* r, struct module_qstate* ms)
                                             0, //an
                                             0, //ns
                                             0, //ar
-                                            1, //total
+                                            0, //total
                                             sec_status_secure);
        return msg;
 }
@@ -1468,7 +1468,7 @@ rpz_patch_nxdomain(struct rpz* r, struct module_qstate* ms)
                                             0, //an
                                             0, //ns
                                             0, //ar
-                                            1, //total
+                                            0, //total
                                             sec_status_secure);
        return msg;
 }