diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-10-18 15:19:41 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-10-18 15:19:41 +0000 |
commit | 012b489a7c882796cd8e5eabe82e2ea51ccceeca (patch) | |
tree | e8b089d9b05236c3dfb2d829a5a760066044b9e5 /usr.sbin/dhcpd/sync.c | |
parent | 6d98ff92ff0fa31ab8b7110d36fbb0ea16fcbbf3 (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.c | 4 |
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); |