mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-04 16:12:04 -04:00
Don't copy EDE codes if source is same as destination
If the nested DNS validator ends up in the same fetch because of the
loops, the code could be copying the EDE codes from the same source EDE
context as the destination EDE context. Skip copying the EDE codes if
the source and the destination is the same.
(cherry picked from commit 2988ebae21)
This commit is contained in:
parent
01a579d126
commit
81468fca59
1 changed files with 4 additions and 0 deletions
|
|
@ -137,6 +137,10 @@ dns_ede_copy(dns_edectx_t *edectx_to, const dns_edectx_t *edectx_from) {
|
|||
REQUIRE(DNS_EDE_VALID(edectx_to));
|
||||
REQUIRE(DNS_EDE_VALID(edectx_from));
|
||||
|
||||
if (edectx_to == edectx_from) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (size_t pos = 0; pos < DNS_EDE_MAX_ERRORS; pos++) {
|
||||
uint16_t fromcode;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue