From: Roy Marples Date: Thu, 27 Mar 2014 19:12:03 +0000 (+0000) Subject: Don't need to zero as many bytes. X-Git-Tag: v6.4.0~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=026bfbf02468d79ba5b9c4273604c9322c275bf8;p=thirdparty%2Fdhcpcd.git Don't need to zero as many bytes. Thanks to Alan Barrett. --- diff --git a/dhcp6.c b/dhcp6.c index 915ea027..62489b37 100644 --- 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);