diff options
author | Shawn Routhier <sar@isc.org> | 2012-10-16 15:05:24 -0700 |
---|---|---|
committer | Shawn Routhier <sar@isc.org> | 2012-10-16 15:05:24 -0700 |
commit | 0f750c4fb19823f622cfde356ac7f7aa2c9a3427 (patch) | |
tree | fea3ccc473e35832e12a0a3d0a576ea9b2174846 /common/lpf.c | |
parent | 881442e20f455fb1dc21600390cc5aecae08fd72 (diff) | |
download | isc-dhcp-0f750c4fb19823f622cfde356ac7f7aa2c9a3427.tar.gz |
[master]
[rt23833]
Clean up a number of items identified by the Coverity
static analysis tool. Runs courtesy of Red Hat.
Diffstat (limited to 'common/lpf.c')
-rw-r--r-- | common/lpf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/lpf.c b/common/lpf.c index 0f0ebe4c..ba052063 100644 --- a/common/lpf.c +++ b/common/lpf.c @@ -4,7 +4,8 @@ Support Services in Vancouver, B.C. */ /* - * Copyright (c) 2004,2007,2009 by Internet Systems Consortium, Inc. ("ISC") + * Copyright (c) 2009,2012 by Internet Systems Consortium, Inc. ("ISC") + * Copyright (c) 2004,2007 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996-2003 by Internet Software Consortium * * Permission to use, copy, modify, and distribute this software for any @@ -463,9 +464,9 @@ get_hw_addr(const char *name, struct hardware *hw) { memcpy(&hw->hbuf[1], sa->sa_data, 6); break; case ARPHRD_FDDI: - hw->hlen = 17; + hw->hlen = 7; hw->hbuf[0] = HTYPE_FDDI; - memcpy(&hw->hbuf[1], sa->sa_data, 16); + memcpy(&hw->hbuf[1], sa->sa_data, 6); break; default: log_fatal("Unsupported device type %ld for \"%s\"", |