svn commit: r236900 - stable/9/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Mon Jun 11 17:54:41 UTC 2012


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


More information about the svn-src-stable-9 mailing list