Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2012 22:35:48 +0000 (UTC)
From:      Andre Oppermann <andre@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243638 - head/sys/kern
Message-ID:  <201211272235.qARMZmji074347@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andre
Date: Tue Nov 27 22:35:48 2012
New Revision: 243638
URL: http://svnweb.freebsd.org/changeset/base/243638

Log:
  Fix r243627 by testing against the head socket instead of the socket
  just created.
  
  MFC after:	1 week
  X-MFC-with:	r243627

Modified:
  head/sys/kern/uipc_socket.c

Modified: head/sys/kern/uipc_socket.c
==============================================================================
--- head/sys/kern/uipc_socket.c	Tue Nov 27 22:34:46 2012	(r243637)
+++ head/sys/kern/uipc_socket.c	Tue Nov 27 22:35:48 2012	(r243638)
@@ -556,7 +556,7 @@ sonewconn(struct socket *head, int conns
 	 * The accept socket may be tearing down but we just
 	 * won a race on the ACCEPT_LOCK.
 	 */
-	if (!(so->so_options & SO_ACCEPTCONN)) {
+	if (!(head->so_options & SO_ACCEPTCONN)) {
 		SOCK_LOCK(so);
 		so->so_head = NULL;
 		sofree(so);		/* NB: returns ACCEPT_UNLOCK'ed. */



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