From ccbe31c21f91ae96e759547be264a34ac63f4f90 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 22 Feb 2024 16:22:31 +0100 Subject: [PATCH] - Fix trim of EDE text from large udp responses from spinning cpu. --- doc/Changelog | 3 +++ util/data/msgencode.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 88c9dbb33..08964afbc 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +22 February 2024: Wouter + - Fix trim of EDE text from large udp responses from spinning cpu. + 20 February 2024: Yorgos - Merge #1010: Mention REFUSED has the TC bit set with unmatched allow_cookie acl in the manpage. It also fixes the code to match the diff --git a/util/data/msgencode.c b/util/data/msgencode.c index 80ae33a38..898ff8412 100644 --- a/util/data/msgencode.c +++ b/util/data/msgencode.c @@ -886,6 +886,9 @@ ede_trim_text(struct edns_option** list) curr->opt_len = 2; prev = curr; curr = curr->next; + } else { + prev = curr; + curr = curr->next; } } else { /* continue */ -- 2.47.3