From owner-svn-src-head@FreeBSD.ORG Sun May 19 16:06:44 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1D64E5A3; Sun, 19 May 2013 16:06:44 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 10228EEB; Sun, 19 May 2013 16:06:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4JG6hvY032155; Sun, 19 May 2013 16:06:43 GMT (envelope-from tuexen@svn.freebsd.org) Received: (from tuexen@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4JG6hNR032154; Sun, 19 May 2013 16:06:43 GMT (envelope-from tuexen@svn.freebsd.org) Message-Id: <201305191606.r4JG6hNR032154@svn.freebsd.org> From: Michael Tuexen Date: Sun, 19 May 2013 16:06:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250809 - head/sys/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 19 May 2013 16:06:44 -0000 Author: tuexen Date: Sun May 19 16:06:43 2013 New Revision: 250809 URL: http://svnweb.freebsd.org/changeset/base/250809 Log: Initialize the fibnum for outgoing packets to 0. This avoids crashing due to the usage of uninitialized fibnum. This bugs became visiable after http://svnweb.freebsd.org/changeset/base/250700 MFC after: 2 weeks Modified: head/sys/netinet/sctp_os_bsd.h Modified: head/sys/netinet/sctp_os_bsd.h ============================================================================== --- head/sys/netinet/sctp_os_bsd.h Sun May 19 15:26:15 2013 (r250808) +++ head/sys/netinet/sctp_os_bsd.h Sun May 19 16:06:43 2013 (r250809) @@ -435,6 +435,7 @@ typedef struct rtentry sctp_rtentry_t; { \ int o_flgs = IP_RAWOUTPUT; \ struct sctp_tcb *local_stcb = stcb; \ + M_SETFIB(o_pak, 0); \ if (local_stcb && \ local_stcb->sctp_ep && \ local_stcb->sctp_ep->sctp_socket) \ @@ -445,6 +446,7 @@ typedef struct rtentry sctp_rtentry_t; #define SCTP_IP6_OUTPUT(result, o_pak, ro, ifp, stcb, vrf_id) \ { \ struct sctp_tcb *local_stcb = stcb; \ + M_SETFIB(o_pak, 0); \ if (local_stcb && local_stcb->sctp_ep) \ result = ip6_output(o_pak, \ ((struct in6pcb *)(local_stcb->sctp_ep))->in6p_outputopts, \