From f0c19be06f7148edaf14f159ea3e671075f45e99 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Wed, 14 Oct 2020 14:03:04 +0200 Subject: [PATCH] - Fix that if there are on reply callbacks, those are called per reply and a new message created if that was modified by the call. --- services/mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/mesh.c b/services/mesh.c index c22ef43fa..810865933 100644 --- a/services/mesh.c +++ b/services/mesh.c @@ -1235,7 +1235,7 @@ mesh_send_reply(struct mesh_state* m, int rcode, struct reply_info* rep, prev->edns.bits == r->edns.bits && prev->edns.udp_size == r->edns.udp_size && edns_opt_list_compare(prev->edns.opt_list, r->edns.opt_list) - == 0 && !env->inplace_cb_lists[inplace_cb_reply]) { + == 0 && !m->s.env->inplace_cb_lists[inplace_cb_reply]) { /* if the previous reply is identical to this one, fix ID */ if(prev_buffer != r_buffer) sldns_buffer_copy(r_buffer, prev_buffer);