]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
A typo and a reorder (without impact) hackathon/poisonlicious-old-code-backup
authorWillem Toorop <willem@nlnetlabs.nl>
Sat, 19 Jul 2025 12:35:38 +0000 (14:35 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Sat, 19 Jul 2025 12:35:38 +0000 (14:35 +0200)
daemon/worker.c
services/mesh.c

index 95d856480e88bb4e9d2381fc2f50259d05e6a16e..7e631e4d55bff9c9e3e4d217b416f61fc8c4286c 100644 (file)
@@ -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.
  */
index 5ecbd07c7ae985a9121a33184e918262f7fefce3..a3122c233094ccce1a7e5a5780e7c5572f88cc68 100644 (file)
@@ -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;