From owner-svn-src-all@FreeBSD.ORG Tue Dec 17 10:53:18 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2298791A; Tue, 17 Dec 2013 10:53:18 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0F13315E2; Tue, 17 Dec 2013 10:53:18 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBHArHEr022370; Tue, 17 Dec 2013 10:53:17 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBHArHM8022369; Tue, 17 Dec 2013 10:53:17 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201312171053.rBHArHM8022369@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Tue, 17 Dec 2013 10:53:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259503 - head/sys/netinet6 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.17 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: Tue, 17 Dec 2013 10:53:18 -0000 Author: ae Date: Tue Dec 17 10:53:17 2013 New Revision: 259503 URL: http://svnweb.freebsd.org/changeset/base/259503 Log: Free mbuf in case of error. MFC after: 1 week Modified: head/sys/netinet6/send.c Modified: head/sys/netinet6/send.c ============================================================================== --- head/sys/netinet6/send.c Tue Dec 17 10:33:27 2013 (r259502) +++ head/sys/netinet6/send.c Tue Dec 17 10:53:17 2013 (r259503) @@ -163,6 +163,7 @@ send_output(struct mbuf *m, struct ifnet nd6_ra_input(m, sizeof(struct ip6_hdr), icmp6len); break; default: + m_freem(m); return (ENOSYS); } return (0);