From owner-cvs-src@FreeBSD.ORG Tue Aug 24 04:59:27 2004 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 219EF16A4CE; Tue, 24 Aug 2004 04:59:27 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F374F43D45; Tue, 24 Aug 2004 04:59:26 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7O4xQxQ006872; Tue, 24 Aug 2004 04:59:26 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7O4xQaZ006871; Tue, 24 Aug 2004 04:59:26 GMT (envelope-from rwatson) Message-Id: <200408240459.i7O4xQaZ006871@repoman.freebsd.org> From: Robert Watson Date: Tue, 24 Aug 2004 04:59:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/tools/regression/sockets/accept_fd_leak accept_fd_leak.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: Tue, 24 Aug 2004 04:59:27 -0000 rwatson 2004-08-24 04:59:26 UTC FreeBSD src repository Modified files: tools/regression/sockets/accept_fd_leak accept_fd_leak.c Log: Make sure to properly initialize 'size' to sizeof(sin) before passing it into accept(). Depending on the initial value in memory, it is otherwise possible to get EINVAL. Revision Changes Path 1.2 +1 -0 src/tools/regression/sockets/accept_fd_leak/accept_fd_leak.c