]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't need to zero as many bytes.
authorRoy Marples <roy@marples.name>
Thu, 27 Mar 2014 19:12:03 +0000 (19:12 +0000)
committerRoy Marples <roy@marples.name>
Thu, 27 Mar 2014 19:12:03 +0000 (19:12 +0000)
Thanks to Alan Barrett.

dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 915ea027dc2c6d13c45e511a9663986f3f3deb17..62489b371d1b0207bce0fc285509aa476be364ff 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -505,7 +505,7 @@ dhcp6_makemessage(struct interface *ifp)
        o->code = htons(D6_OPTION_ELAPSED);
        o->len = htons(sizeof(uint16_t));
        p = D6_OPTION_DATA(o);
-       memset(p, 0, sizeof(u16));
+       memset(p, 0, sizeof(uint16_t));
 
        o = D6_NEXT_OPTION(o);
        dhcp6_makevendor(o, ifp);