mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-23 00:00:51 -05:00
- Fix possibly unaligned memory access.
This commit is contained in:
parent
bab5ad623c
commit
2b1028bdad
1 changed files with 1 additions and 1 deletions
|
|
@ -1049,7 +1049,7 @@ parse_edns_options_from_query(uint8_t* rdata_ptr, size_t rdata_len,
|
||||||
/* Copy client cookie, version and timestamp for
|
/* Copy client cookie, version and timestamp for
|
||||||
* validation and creation purposes.
|
* validation and creation purposes.
|
||||||
*/
|
*/
|
||||||
memcpy(server_cookie, rdata_ptr, 16);
|
memmove(server_cookie, rdata_ptr, 16);
|
||||||
|
|
||||||
/* Copy client ip for validation and creation
|
/* Copy client ip for validation and creation
|
||||||
* purposes. It will be overwritten if (re)creation
|
* purposes. It will be overwritten if (re)creation
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue