Page MenuHomeFreeBSD

D8445.diff
No OneTemporary

D8445.diff

Index: head/sbin/dhclient/dispatch.c
===================================================================
--- head/sbin/dhclient/dispatch.c
+++ head/sbin/dhclient/dispatch.c
@@ -106,8 +106,8 @@
if (foo.sin_addr.s_addr == htonl(INADDR_LOOPBACK))
continue;
if (!iface->ifp) {
- int len = IFNAMSIZ + ifa->ifa_addr->sa_len;
- if ((tif = malloc(len)) == NULL)
+ if ((tif = calloc(1, sizeof(struct ifreq)))
+ == NULL)
error("no space to remember ifp");
strlcpy(tif->ifr_name, ifa->ifa_name, IFNAMSIZ);
memcpy(&tif->ifr_addr, ifa->ifa_addr,

File Metadata

Mime Type
text/plain
Expires
Sun, Jul 26, 4:15 PM (59 m, 33 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35544464
Default Alt Text
D8445.diff (578 B)

Event Timeline