From owner-svn-src-head@FreeBSD.ORG Wed Apr 29 10:13:23 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FA7C1065670; Wed, 29 Apr 2009 10:13:23 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1E74E8FC0C; Wed, 29 Apr 2009 10:13:23 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n3TADN31076099; Wed, 29 Apr 2009 10:13:23 GMT (envelope-from bms@svn.freebsd.org) Received: (from bms@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n3TADNHi076098; Wed, 29 Apr 2009 10:13:23 GMT (envelope-from bms@svn.freebsd.org) Message-Id: <200904291013.n3TADNHi076098@svn.freebsd.org> From: Bruce M Simpson Date: Wed, 29 Apr 2009 10:13:23 +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: r191658 - head/sys/netinet X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2009 10:13:23 -0000 Author: bms Date: Wed Apr 29 10:13:22 2009 New Revision: 191658 URL: http://svn.freebsd.org/changeset/base/191658 Log: Do not assume that ip6_moptions is always set, it is a lazy-allocated structure. Modified: head/sys/netinet/in_pcb.c Modified: head/sys/netinet/in_pcb.c ============================================================================== --- head/sys/netinet/in_pcb.c Wed Apr 29 10:12:01 2009 (r191657) +++ head/sys/netinet/in_pcb.c Wed Apr 29 10:13:22 2009 (r191658) @@ -927,7 +927,8 @@ in_pcbfree_internal(struct inpcb *inp) #ifdef INET6 if (inp->inp_vflag & INP_IPV6PROTO) { ip6_freepcbopts(inp->in6p_outputopts); - ip6_freemoptions(inp->in6p_moptions); + if (inp->in6p_moptions != NULL) + ip6_freemoptions(inp->in6p_moptions); } #endif if (inp->inp_options)