summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/sync.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-10-18 15:19:41 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-10-18 15:19:41 +0000
commit012b489a7c882796cd8e5eabe82e2ea51ccceeca (patch)
treee8b089d9b05236c3dfb2d829a5a760066044b9e5 /usr.sbin/dhcpd/sync.c
parent6d98ff92ff0fa31ab8b7110d36fbb0ea16fcbbf3 (diff)
Scattering a few bcopy()'s around source using mostly memcpy() is just
asking for confusion. Replace bcopy()'s with memcpy()'s.
Diffstat (limited to 'usr.sbin/dhcpd/sync.c')
-rw-r--r--usr.sbin/dhcpd/sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcpd/sync.c b/usr.sbin/dhcpd/sync.c
index f8dde4e0ddb..27346b82854 100644
--- a/usr.sbin/dhcpd/sync.c
+++ b/usr.sbin/dhcpd/sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sync.c,v 1.14 2013/10/18 13:44:35 krw Exp $ */
+/* $OpenBSD: sync.c,v 1.15 2013/10/18 15:19:40 krw Exp $ */
/*
* Copyright (c) 2008 Bob Beck <beck@openbsd.org>
@@ -275,7 +275,7 @@ sync_recv(void)
len = ntohs(hdr->sh_length);
/* Compute and validate HMAC */
- bcopy(hdr->sh_hmac, hmac[0], DHCP_SYNC_HMAC_LEN);
+ memcpy(hmac[0], hdr->sh_hmac, DHCP_SYNC_HMAC_LEN);
bzero(hdr->sh_hmac, DHCP_SYNC_HMAC_LEN);
HMAC(EVP_sha1(), sync_key, strlen(sync_key), buf, len,
hmac[1], &hmac_len);