From owner-svn-src-all@FreeBSD.ORG Mon Sep 22 16:06:38 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02545F76; Mon, 22 Sep 2014 16:06:38 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E1B0BDF5; Mon, 22 Sep 2014 16:06:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8MG6b0K071213; Mon, 22 Sep 2014 16:06:37 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8MG6bbu071212; Mon, 22 Sep 2014 16:06:37 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201409221606.s8MG6bbu071212@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Mon, 22 Sep 2014 16:06:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271971 - head/contrib/ipfilter/lib X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 16:06:38 -0000 Author: cy Date: Mon Sep 22 16:06:37 2014 New Revision: 271971 URL: http://svnweb.freebsd.org/changeset/base/271971 Log: #553 gethost needs to zero entire IP address structure Approved by: glebius (mentor) Obtained from: ipfilter CVS repo (r1.11) Modified: head/contrib/ipfilter/lib/gethost.c Modified: head/contrib/ipfilter/lib/gethost.c ============================================================================== --- head/contrib/ipfilter/lib/gethost.c Mon Sep 22 16:03:29 2014 (r271970) +++ head/contrib/ipfilter/lib/gethost.c Mon Sep 22 16:06:37 2014 (r271971) @@ -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);