projects
/
oweals
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3d1f51
)
dhcpv6: use correct length when copying duid
author
Steven Barth
<steven@midlink.org>
Mon, 7 Sep 2015 13:28:10 +0000
(15:28 +0200)
committer
Steven Barth
<steven@midlink.org>
Mon, 7 Sep 2015 13:30:05 +0000
(15:30 +0200)
src/dhcpv6-ia.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6-ia.c
b/src/dhcpv6-ia.c
index 30bffbcf0d921e3d8638254c08c2ebef01cc508a..9b8c47927b32b6a7ab733d0392073325a60a8708 100644
(file)
--- a/
src/dhcpv6-ia.c
+++ b/
src/dhcpv6-ia.c
@@
-109,7
+109,7
@@
int setup_dhcpv6_ia_interface(struct interface *iface, bool enable)
a->assigned = ((i4a / 100) << 8) | (((i4a % 100) / 10) << 4) | (i4a % 10);
}
odhcpd_urandom(a->key, sizeof(a->key));
- memcpy(a->clid_data, lease->duid,
a->cl
id_len);
+ memcpy(a->clid_data, lease->duid,
lease->du
id_len);
memcpy(a->mac, lease->mac.ether_addr_octet, sizeof(a->mac));
// Assign to all interfaces