From owner-cvs-src@FreeBSD.ORG Wed Jan 12 10:15:24 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BCBC16A4CE; Wed, 12 Jan 2005 10:15:24 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22ECE43D46; Wed, 12 Jan 2005 10:15:24 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j0CAFOO3061762; Wed, 12 Jan 2005 10:15:24 GMT (envelope-from sobomax@repoman.freebsd.org) Received: (from sobomax@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0CAFOUB061761; Wed, 12 Jan 2005 10:15:24 GMT (envelope-from sobomax) Message-Id: <200501121015.j0CAFOUB061761@repoman.freebsd.org> From: Maxim Sobolev Date: Wed, 12 Jan 2005 10:15:24 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern uipc_socket.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 10:15:24 -0000 sobomax 2005-01-12 10:15:24 UTC FreeBSD src repository Modified files: sys/kern uipc_socket.c Log: When re-connecting already connected datagram socket ensure to clean up its pending error state, which may be set in some rare conditions resulting in connect() syscall returning that bogus error and making application believe that attempt to change association has failed, while it has not in fact. There is sockets/reconnect regression test which excersises this bug. MFC after: 2 weeks Revision Changes Path 1.225 +11 -2 src/sys/kern/uipc_socket.c