From: W.C.A. Wijngaards Date: Thu, 22 Feb 2024 15:22:31 +0000 (+0100) Subject: - Fix trim of EDE text from large udp responses from spinning cpu. X-Git-Tag: release-1.19.3rc1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ccbe31c21f91ae96e759547be264a34ac63f4f90;p=thirdparty%2Funbound.git - Fix trim of EDE text from large udp responses from spinning cpu. --- 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 */