Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2012 10:50:23 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239091 - head/sys/netinet
Message-ID:  <201208061050.q76AoNfk027321@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Mon Aug  6 10:50:23 2012
New Revision: 239091
URL: http://svn.freebsd.org/changeset/base/239091

Log:
  Fix a bug found by dim@:
  Don't use an uninitilized variable, if INVARIANTS is on and an illegal
  packet with destination 0 is received.
  
  MFC after:	3 days
  X-MFC with:	238003

Modified:
  head/sys/netinet/sctp_input.c

Modified: head/sys/netinet/sctp_input.c
==============================================================================
--- head/sys/netinet/sctp_input.c	Mon Aug  6 08:59:39 2012	(r239090)
+++ head/sys/netinet/sctp_input.c	Mon Aug  6 10:50:23 2012	(r239091)
@@ -5600,7 +5600,7 @@ sctp_common_input_processing(struct mbuf
 	struct mbuf *m = *mm;
 	int un_sent;
 	int cnt_ctrl_ready = 0;
-	struct sctp_inpcb *inp, *inp_decr = NULL;
+	struct sctp_inpcb *inp = NULL, *inp_decr = NULL;
 	struct sctp_tcb *stcb = NULL;
 	struct sctp_nets *net = NULL;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208061050.q76AoNfk027321>