Date: Sun, 12 Oct 2014 16:48:22 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r272986 - stable/10/contrib/ipfilter/lib Message-ID: <201410121648.s9CGmMZP048757@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Sun Oct 12 16:48:22 2014 New Revision: 272986 URL: https://svnweb.freebsd.org/changeset/base/272986 Log: MFC r271971 Fix ipfilter bug #553 gethost needs to zero entire IP address structure. Obtained from: ipfilter CVS repo (r1.11) Modified: stable/10/contrib/ipfilter/lib/gethost.c Directory Properties: stable/10/ (props changed) Modified: stable/10/contrib/ipfilter/lib/gethost.c ============================================================================== --- stable/10/contrib/ipfilter/lib/gethost.c Sun Oct 12 16:46:03 2014 (r272985) +++ stable/10/contrib/ipfilter/lib/gethost.c Sun Oct 12 16:48:22 2014 (r272986) @@ -19,6 +19,7 @@ int gethost(family, name, hostp) struct netent *n; u_32_t addr; + bzero(hostp, sizeof(*hostp)); if (!strcmp(name, "test.host.dots")) { if (family == AF_INET) { hostp->in4.s_addr = htonl(0xfedcba98);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410121648.s9CGmMZP048757>