From owner-svn-src-all@FreeBSD.ORG Fri Jun 4 14:38:25 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E0AF1065675; Fri, 4 Jun 2010 14:38:25 +0000 (UTC) (envelope-from cperciva@FreeBSD.org) Received: from svn.freebsd.org (unknown [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F18718FC08; Fri, 4 Jun 2010 14:38:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o54EcOLJ029451; Fri, 4 Jun 2010 14:38:24 GMT (envelope-from cperciva@svn.freebsd.org) Received: (from cperciva@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o54EcO3a029449; Fri, 4 Jun 2010 14:38:24 GMT (envelope-from cperciva@svn.freebsd.org) Message-Id: <201006041438.o54EcO3a029449@svn.freebsd.org> From: Colin Percival Date: Fri, 4 Jun 2010 14:38:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r208803 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 04 Jun 2010 14:38:25 -0000 Author: cperciva Date: Fri Jun 4 14:38:24 2010 New Revision: 208803 URL: http://svn.freebsd.org/changeset/base/208803 Log: Declare ip6 as (struct in6_addr *) instead of (struct in_addr *). This is a harmless bug since we never actually use ip6 as anything other than an opaque pointer. Found with: Coverty Prevent(tm) CID: 4319 MFC after: 1 month Modified: head/sys/kern/kern_jail.c Modified: head/sys/kern/kern_jail.c ============================================================================== --- head/sys/kern/kern_jail.c Fri Jun 4 14:22:49 2010 (r208802) +++ head/sys/kern/kern_jail.c Fri Jun 4 14:38:24 2010 (r208803) @@ -3941,7 +3941,7 @@ sysctl_jail_list(SYSCTL_HANDLER_ARGS) int ip4s = 0; #endif #ifdef INET6 - struct in_addr *ip6 = NULL; + struct in6_addr *ip6 = NULL; int ip6s = 0; #endif int descend, error;