From owner-cvs-all Fri Jan 17 11:20: 2 2003 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 5536437B401; Fri, 17 Jan 2003 11:20:01 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F159F43ED8; Fri, 17 Jan 2003 11:20:00 -0800 (PST) (envelope-from tmm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h0HJK0fh037243; Fri, 17 Jan 2003 11:20:00 -0800 (PST) (envelope-from tmm@repoman.freebsd.org) Received: (from tmm@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h0HJK0Qg037242; Fri, 17 Jan 2003 11:20:00 -0800 (PST) Message-Id: <200301171920.h0HJK0Qg037242@repoman.freebsd.org> From: Thomas Moestl Date: Fri, 17 Jan 2003 11:20:00 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_socket.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG tmm 2003/01/17 11:20:00 PST Modified files: sys/kern uipc_socket.c Log: Disallow listen() on sockets which are in the SS_ISCONNECTED or SS_ISCONNECTING state, returning EINVAL (which is what POSIX mandates in this case). listen() on connected or connecting sockets would cause them to enter a bad state; in the TCP case, this could cause sockets to go catatonic or panics, depending on how the socket was connected. Reviewed by: -net MFC after: 2 weeks Revision Changes Path 1.143 +4 -0 src/sys/kern/uipc_socket.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message