Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2012 17:54:40 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r236900 - stable/9/sys/kern
Message-ID:  <201206111754.q5BHseTd000979@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Mon Jun 11 17:54:40 2012
New Revision: 236900
URL: http://svn.freebsd.org/changeset/base/236900

Log:
  MFC r236738:
  	Plug socket refcount leak on error in sys_sctp_peeloff.

Modified:
  stable/9/sys/kern/uipc_syscalls.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/uipc_syscalls.c
==============================================================================
--- stable/9/sys/kern/uipc_syscalls.c	Mon Jun 11 17:42:39 2012	(r236899)
+++ stable/9/sys/kern/uipc_syscalls.c	Mon Jun 11 17:54:40 2012	(r236900)
@@ -2323,11 +2323,11 @@ sys_sctp_peeloff(td, uap)
 		goto done2;
 	if (head->so_proto->pr_protocol != IPPROTO_SCTP) {
 		error = EOPNOTSUPP;
-		goto done2;
+		goto done;
 	}
 	error = sctp_can_peel_off(head, (sctp_assoc_t)uap->name);
 	if (error)
-		goto done2;
+		goto done;
 	/*
 	 * At this point we know we do have a assoc to pull
 	 * we proceed to get the fd setup. This may block



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