From owner-cvs-src@FreeBSD.ORG Wed Jan 5 23:21:14 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 5916316A4CE; Wed, 5 Jan 2005 23:21:14 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32A8143D2D; Wed, 5 Jan 2005 23:21:14 +0000 (GMT) (envelope-from ps@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 j05NLES3046753; Wed, 5 Jan 2005 23:21:14 GMT (envelope-from ps@repoman.freebsd.org) Received: (from ps@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j05NLD9r046752; Wed, 5 Jan 2005 23:21:14 GMT (envelope-from ps) Message-Id: <200501052321.j05NLD9r046752@repoman.freebsd.org> From: Paul Saab Date: Wed, 5 Jan 2005 23:21:13 +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/nfsclient nfs_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, 05 Jan 2005 23:21:14 -0000 ps 2005-01-05 23:21:13 UTC FreeBSD src repository Modified files: sys/nfsclient nfs_socket.c Log: If the NFS/TCP stream is out of sync between the client and server, and if the client (erroneously) reads the RPC length as 0 bytes, the client can loop around in the socket callback. Explicitly check for the length being 0 case and teardown/re-connect. Submitted by: Mohan Srinivasan Revision Changes Path 1.118 +1 -1 src/sys/nfsclient/nfs_socket.c