Hi,
Same as the others, replace malloc & memset with calloc. This time in
usr.sbin/rwhod/rwhod.c.
Good night!
Index: rwhod.c
===================================================================
RCS file: /cvs/src/usr.sbin/rwhod/rwhod.c,v
retrieving revision 1.36
diff -u -p -u -r1.36 rwhod.c
--- rwhod.c 9 Jan 2014 05:04:03 -0000 1.36
+++ rwhod.c 24 Apr 2014 02:33:08 -0000
@@ -530,10 +530,9 @@ configure(void)
if (np != NULL)
continue;
len = sizeof(*np) + dstaddr->sa_len + sdl->sdl_nlen + 1;
- np = (struct neighbor *)malloc(len);
+ np = calloc(1, len);
if (np == NULL)
- quit("malloc of neighbor structure");
- memset(np, 0, len);
+ quit("calloc of neighbor structure");
np->n_flags = flags;
np->n_addr = (struct sockaddr *)(np + 1);
np->n_addrlen = dstaddr->sa_len;
--
Peter Malone <[email protected]>