From: mb Date: Tue, 24 Nov 2020 10:33:16 +0000 (+0100) Subject: rpz: update ext_state in the iterator X-Git-Tag: release-1.14.0rc1~62^2~53^2^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b178cf34b65be7dbb5d81547910d87d94af87db2;p=thirdparty%2Funbound.git rpz: update ext_state in the iterator --- diff --git a/iterator/iterator.c b/iterator/iterator.c index 609786a16..6655ec875 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -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; } } diff --git a/services/rpz.c b/services/rpz.c index acf2b8848..fb219ab09 100644 --- a/services/rpz.c +++ b/services/rpz.c @@ -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; }