summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2012-09-05 08:08:24 +0200
committerKai Blin <kai@samba.org>2012-09-05 08:41:23 +0200
commitcf4333b0cd675271628d89ec263b9a352fa63906 (patch)
tree7bd16abffc62314e91947895f3eb6c59a0bb60f1 /source4
parenta0c2453405fe8e92e0871b79eec0ceb76eec0aaa (diff)
downloadsamba-cf4333b0cd675271628d89ec263b9a352fa63906.tar.gz
samba-cf4333b0cd675271628d89ec263b9a352fa63906.tar.bz2
samba-cf4333b0cd675271628d89ec263b9a352fa63906.zip
hack: dns_sign_tsig correct memcpy
Diffstat (limited to 'source4')
-rw-r--r--source4/dns_server/dns_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dns_server/dns_crypto.c b/source4/dns_server/dns_crypto.c
index d7360a9d8f..7a049c04ef 100644
--- a/source4/dns_server/dns_crypto.c
+++ b/source4/dns_server/dns_crypto.c
@@ -291,7 +291,7 @@ WERROR dns_sign_tsig(struct dns_server *dns,
}
memcpy(buffer, packet_blob.data, packet_blob.length);
- memcpy(buffer, tsig_blob.data, tsig_blob.length);
+ memcpy(buffer+packet_blob.length, tsig_blob.data, tsig_blob.length);
status = gensec_sign_packet(tkey->gensec, mem_ctx, buffer, buffer_len,