Skip to content

Commit

Permalink
Attribute Roland
Browse files Browse the repository at this point in the history
and a small dereferencing void * fix
  • Loading branch information
wtoorop committed Jul 12, 2024
1 parent e6cd24c commit 91a45ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
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.
Expand Down
2 changes: 1 addition & 1 deletion edns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 91a45ad

Please sign in to comment.