summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_engine.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:32:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:32:44 +0000
commit9d687b0719a1ad72f2e0cacc566e0b550d4cede9 (patch)
treecb053c4d49c8b751b65779cf6a4c9eec85bc66c0 /src/libs6dns/s6dns_engine.c
parent22cf41f697ff6de1eb4d6c5f66e5de70e86c9f74 (diff)
downloads6-dns-9d687b0719a1ad72f2e0cacc566e0b550d4cede9.tar.xz
Fix a few omissions (and a memchr() argument order bug!)
Diffstat (limited to 'src/libs6dns/s6dns_engine.c')
-rw-r--r--src/libs6dns/s6dns_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6dns/s6dns_engine.c b/src/libs6dns/s6dns_engine.c
index baf93b0..8891e8e 100644
--- a/src/libs6dns/s6dns_engine.c
+++ b/src/libs6dns/s6dns_engine.c
@@ -381,7 +381,7 @@ int s6dns_engine_init_r (s6dns_engine_t *dt, s6dns_ip46list_t const *servers, ui
h.counts.qd = 1 ;
uint16_pack_big(dt->sa.s, qlen + 16) ;
s6dns_message_header_pack(dt->sa.s + 2, &h) ;
- byte_copy(dt->sa.s + 14, qlen, q) ;
+ memcpy(dt->sa.s + 14, q, qlen) ;
uint16_pack_big(dt->sa.s + 14 + qlen, qtype) ;
uint16_pack_big(dt->sa.s + 16 + qlen, S6DNS_C_IN) ;
if (qlen > 496) dt->flagtcp = 1 ;