]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix Client ID's
authorRoy Marples <roy@marples.name>
Thu, 28 Jun 2007 03:41:25 +0000 (03:41 +0000)
committerRoy Marples <roy@marples.name>
Thu, 28 Jun 2007 03:41:25 +0000 (03:41 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 1f16702f206a33daffada31988286886ea4f2783..9f45d94ba1cf917ec3c0062eea4cc426ebba6e92 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -248,7 +248,7 @@ size_t send_message (const interface_t *iface, const dhcp_t *dhcp,
        if (options->clientid_len > 0) {
                *p++ = options->clientid_len + 1;
                *p++ = 0; /* string */
-               memcpy (p, options, options->clientid_len);
+               memcpy (p, options->clientid, options->clientid_len);
                p += options->clientid_len;
 #ifdef ENABLE_DUID
        } else if (iface->duid && options->clientid_len != -1) {
@@ -271,7 +271,7 @@ size_t send_message (const interface_t *iface, const dhcp_t *dhcp,
        } else {
                *p++ = iface->hwlen + 1;
                *p++ = iface->family;
-               memcpy (p, &iface->hwaddr, iface->hwlen);
+               memcpy (p, iface->hwaddr, iface->hwlen);
                p += iface->hwlen;
        }