Date: Sun, 25 Jan 2015 15:02:29 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r277704 - user/pho/stress2/misc Message-ID: <201501251502.t0PF2TUq016032@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Sun Jan 25 15:02:28 2015 New Revision: 277704 URL: https://svnweb.freebsd.org/changeset/base/277704 Log: Zero struct before use. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/callout_reset_on.sh Modified: user/pho/stress2/misc/callout_reset_on.sh ============================================================================== --- user/pho/stress2/misc/callout_reset_on.sh Sun Jan 25 14:50:49 2015 (r277703) +++ user/pho/stress2/misc/callout_reset_on.sh Sun Jan 25 15:02:28 2015 (r277704) @@ -239,6 +239,7 @@ writer(void) { err(1, "setsockopt(), %s:%d", __FILE__, __LINE__); hostent = gethostbyname ("localhost"); + bzero(&inetaddr, sizeof(inetaddr)); memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr, sizeof (struct in_addr));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501251502.t0PF2TUq016032>