From owner-cvs-all@FreeBSD.ORG Tue Jul 11 21:57:01 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 BE96016A4DA; Tue, 11 Jul 2006 21:57:01 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C99E43D8A; Tue, 11 Jul 2006 21:56:58 +0000 (GMT) (envelope-from rwatson@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 k6BLuwLb013960; Tue, 11 Jul 2006 21:56:58 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6BLuwL8013959; Tue, 11 Jul 2006 21:56:58 GMT (envelope-from rwatson) Message-Id: <200607112156.k6BLuwL8013959@repoman.freebsd.org> From: Robert Watson Date: Tue, 11 Jul 2006 21:56:58 +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/kern uipc_socket.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: Tue, 11 Jul 2006 21:57:01 -0000 rwatson 2006-07-11 21:56:58 UTC FreeBSD src repository Modified files: sys/kern uipc_socket.c Log: When pru_attach() fails, call sodealloc() on the socket rather than using sorele() and the full tear-down path. Since protocol state allocation failed, this is not required (and is arguably undesirable). This matches the behavior of sonewconn() under the same circumstances. Revision Changes Path 1.270 +1 -4 src/sys/kern/uipc_socket.c