From: Willem Toorop Date: Sat, 19 Jul 2025 12:35:38 +0000 (+0200) Subject: A typo and a reorder (without impact) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd31c95696fbec1232abfd5ba6dff882a2d088c;p=thirdparty%2Funbound.git A typo and a reorder (without impact) --- diff --git a/daemon/worker.c b/daemon/worker.c index 95d856480..7e631e4d5 100644 --- a/daemon/worker.c +++ b/daemon/worker.c @@ -303,7 +303,7 @@ worker_err_ratelimit(struct worker* worker, int err) * Structure holding the result of the worker_check_request function. * Based on configuration it could be called up to four times; ideally should * be called once. - * When value is a positive number, it countains the error to return. + * When value is a positive number, it contains the error to return. * Otherwise DROP_REQUEST (-1) is returned, or RESPONSE_MESSAGE (-2) in * case the qr bit was set. Value is set to REQUEST_OK (0) if all is good. */ diff --git a/services/mesh.c b/services/mesh.c index 5ecbd07c7..a3122c233 100644 --- a/services/mesh.c +++ b/services/mesh.c @@ -1723,6 +1723,10 @@ void mesh_query_done(struct mesh_state* mstate) if(err) { log_err("%s", err); } } } + + if(mstate->reply_list && mstate->s.env->cfg->dns_error_reporting) + dns_error_reporting(&mstate->s, rep); + if(mstate->reply_list && rep) { uint8_t data[8192]; struct sldns_buffer dest; @@ -1743,8 +1747,6 @@ void mesh_query_done(struct mesh_state* mstate) } } - if(mstate->reply_list && mstate->s.env->cfg->dns_error_reporting) - dns_error_reporting(&mstate->s, rep); for(r = mstate->reply_list; r; r = r->next) { struct timeval old;