]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Make sure callback changes for EDNS are not lost. 605/head
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Fri, 14 Jan 2022 14:18:43 +0000 (15:18 +0100)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Fri, 14 Jan 2022 14:18:43 +0000 (15:18 +0100)
services/outside_network.c
testcode/fake_event.c

index ca92707f33d09f0a589f1068b478e9ba0e8d1571..d11431169497a9c7ade44322a603232606dae25d 100644 (file)
@@ -3278,6 +3278,7 @@ outnet_serviced_query(struct outside_network* outnet,
        }
        /* Restore the option list; we can explicitly use the copied one from
         * now on. */
+       per_upstream_opt_list = qstate->edns_opts_back_out;
        qstate->edns_opts_back_out = backed_up_opt_list;
 
        if((client_string_addr = edns_string_addr_lookup(
index e1b4443bd83a43c643be7188b3c3e02b845316e2..3c394ca62fe3b1129b226c78de27fff3143891d0 100644 (file)
@@ -1243,6 +1243,7 @@ struct serviced_query* outnet_serviced_query(struct outside_network* outnet,
                }
                /* Restore the option list; we can explicitly use the copied
                 * one from now on. */
+               per_upstream_opt_list = qstate->edns_opts_back_out;
                qstate->edns_opts_back_out = backed_up_opt_list;
                if((client_string_addr = edns_string_addr_lookup(
                        &env->edns_strings->client_strings,