summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2012-11-27 22:35:48 +0000
committerandre <andre@FreeBSD.org>2012-11-27 22:35:48 +0000
commit48786251b25c319dc3cef1ada2a58c1ba30e1477 (patch)
tree961ce4313fbcf15cc2b89245b115e3371b47cee3 /sys/kern/uipc_socket.c
parentb971ca3151dfed0cfb1ed2115c7cca3911607722 (diff)
downloadFreeBSD-src-48786251b25c319dc3cef1ada2a58c1ba30e1477.zip
FreeBSD-src-48786251b25c319dc3cef1ada2a58c1ba30e1477.tar.gz
Fix r243627 by testing against the head socket instead of the socket
just created. MFC after: 1 week X-MFC-with: r243627
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r--sys/kern/uipc_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 7a2c792..4416eca 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -556,7 +556,7 @@ sonewconn(struct socket *head, int connstatus)
* 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. */
OpenPOWER on IntegriCloud