mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-02-03 18:49:28 -05:00
fix: padding of libknot knot_rdataset_copy when redis calling function on unaligned data
This commit is contained in:
parent
67b3f17c1f
commit
40780789f7
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ int knot_rdataset_copy(knot_rdataset_t *dst, const knot_rdataset_t *src, knot_mm
|
|||
if (dst->rdata == NULL) {
|
||||
return KNOT_ENOMEM;
|
||||
}
|
||||
memcpy(dst->rdata, src->rdata, src->size);
|
||||
memcpy(dst->rdata, (void *)src->rdata, src->size);
|
||||
} else {
|
||||
assert(src->size == 0);
|
||||
dst->rdata = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue