diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-12-11 00:31:13 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-12-11 00:31:13 +0000 |
commit | 4f982ea8f879219b840214b398eb316a8c5b6e57 (patch) | |
tree | e6e44e8aac9c7f5938809e717e2f1f8da4964c71 | |
parent | bfdb9a6cef7fd0fefa73dc90adf9eb3bf10f24ca (diff) |
Stray memcpy() using src size.
-rw-r--r-- | sbin/dhclient/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/packet.c b/sbin/dhclient/packet.c index 3eb39dd5c50..378132b6c9a 100644 --- a/sbin/dhclient/packet.c +++ b/sbin/dhclient/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.22 2013/12/06 23:40:48 krw Exp $ */ +/* $OpenBSD: packet.c,v 1.23 2013/12/11 00:31:12 krw Exp $ */ /* Packet assembly code, originally contributed by Archie Cobbs. */ @@ -146,7 +146,7 @@ decode_hw_header(unsigned char *buf, int bufix, struct ether_addr *from) memcpy(&eh, buf + bufix, ETHER_HDR_LEN); - memcpy(from->ether_addr_octet, eh.ether_shost, sizeof(eh.ether_shost)); + memcpy(from->ether_addr_octet, eh.ether_shost, ETHER_ADDR_LEN); return (sizeof(eh)); } |