From owner-cvs-all@FreeBSD.ORG Thu Nov 9 21:01:08 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 179FA16A403; Thu, 9 Nov 2006 21:01:08 +0000 (UTC) (envelope-from rrs@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA3F643D76; Thu, 9 Nov 2006 21:01:07 +0000 (GMT) (envelope-from rrs@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kA9L17tT098512; Thu, 9 Nov 2006 21:01:07 GMT (envelope-from rrs@repoman.freebsd.org) Received: (from rrs@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kA9L174M098511; Thu, 9 Nov 2006 21:01:07 GMT (envelope-from rrs) Message-Id: <200611092101.kA9L174M098511@repoman.freebsd.org> From: Randall Stewart Date: Thu, 9 Nov 2006 21:01:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netinet sctp_input.c sctp_usrreq.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Nov 2006 21:01:08 -0000 rrs 2006-11-09 21:01:07 UTC FreeBSD src repository Modified files: sys/netinet sctp_input.c sctp_usrreq.c Log: Fixes an issue with handling of stream reset. When a reset comes in we need to calculate the length and therefore the number of listed streams (if any) based on the TLV type. Otherwise if we get a retran we could in theory panic by sending a notification to a user with a incorrect list and thus no memory listing the streams. Found in IOS by devtest :-) Approved by: gnn Revision Changes Path 1.6 +3 -3 src/sys/netinet/sctp_input.c 1.6 +0 -1 src/sys/netinet/sctp_usrreq.c