- Fix possibly unaligned memory access.

This commit is contained in:
W.C.A. Wijngaards 2023-08-16 10:06:06 +02:00
parent bab5ad623c
commit 2b1028bdad

View file

@ -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