From owner-cvs-all@FreeBSD.ORG Sat Jan 10 00:28:55 2004 Return-Path: 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 C9C2216A4CE; Sat, 10 Jan 2004 00:28:55 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A50B43D55; Sat, 10 Jan 2004 00:28:55 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0A8Ss0B047884; Sat, 10 Jan 2004 00:28:54 -0800 (PST) (envelope-from truckman@repoman.freebsd.org) Received: (from truckman@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0A8SsZP047883; Sat, 10 Jan 2004 00:28:54 -0800 (PST) (envelope-from truckman) Message-Id: <200401100828.i0A8SsZP047883@repoman.freebsd.org> From: Don Lewis Date: Sat, 10 Jan 2004 00:28:54 -0800 (PST) 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_syscalls.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 10 Jan 2004 08:28:55 -0000 truckman 2004/01/10 00:28:54 PST FreeBSD src repository Modified files: sys/kern uipc_syscalls.c Log: Add a somewhat redundant check on the len arguement to getsockaddr() to avoid relying on the minimum memory allocation size to avoid problems. The check is somewhat redundant because the consumers of the returned structure will check that sa_len is a protocol-specific larger size. Submitted by: Matthew Dillon Reviewed by: nectar MFC after: 30 days Revision Changes Path 1.163 +2 -0 src/sys/kern/uipc_syscalls.c