]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Attribute Roland
authorWillem Toorop <willem@nlnetlabs.nl>
Fri, 12 Jul 2024 12:57:10 +0000 (14:57 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Fri, 12 Jul 2024 12:57:10 +0000 (14:57 +0200)
and a small dereferencing void * fix

Changelog
edns.c

index 60844bc1471398ee8cb571b225adfdb27b799341..ae1bfc2b46b9722779df42ee774155b01e7f99b5 100644 (file)
--- a/Changelog
+++ b/Changelog
          Thanks Fabrice Fontaine
        * PR #224: Portable executable progs don't underlink to libldns
          Thanks Ørjan Malde
-       * PR #216 Update declaration for function with no argument
+       * PR #216: Update declaration for function with no argument
          Thanks Ed Maste
-       * PR #214 fix the build in FreeBSD's base system
+       * PR #214: fix the build in FreeBSD's base system
          Thanks Pierre Pronchery and Dag-Erling Smørgrav
-       * PR #206 improve 'next-label' algorithm in ldns-walk
+       * PR #206: improve 'next-label' algorithm in ldns-walk
          Thanks Jelte Jansen
+       * PR #205: Add functions to extract RFC 8914 extended errors
+         Thanks Roland van Rijswijk-Deij
 
 1.8.3  2022-08-15
        * bugfix #183: Assertion failure with OPT record without rdata.
diff --git a/edns.c b/edns.c
index 87ca547e3c43da40a1979b95a32848660e5d4d28..18615ec29597d92eb974900d9461acf20d285a15 100644 (file)
--- a/edns.c
+++ b/edns.c
@@ -74,7 +74,7 @@ ldns_edns_ede_get_text(const ldns_edns_option* edns, char **ede_text)
                *ede_text = (char*) malloc((edns->_size - 1) * sizeof(char));
 
                memset(*ede_text, 0, edns->_size - 1);
-               memcpy(*ede_text, &edns->_data[2], edns->_size - 2);
+               memcpy(*ede_text, &((char*)edns->_data)[2], edns->_size - 2);
        }
 
        return LDNS_STATUS_OK;