From owner-p4-projects@FreeBSD.ORG Sat Apr 24 21:35:10 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A4A3D1065674; Sat, 24 Apr 2010 21:35:10 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69465106564A for ; Sat, 24 Apr 2010 21:35:10 +0000 (UTC) (envelope-from anchie@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5788F8FC15 for ; Sat, 24 Apr 2010 21:35:10 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o3OLZAOP082630 for ; Sat, 24 Apr 2010 21:35:10 GMT (envelope-from anchie@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o3OLZAlL082628 for perforce@freebsd.org; Sat, 24 Apr 2010 21:35:10 GMT (envelope-from anchie@FreeBSD.org) Date: Sat, 24 Apr 2010 21:35:10 GMT Message-Id: <201004242135.o3OLZAlL082628@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to anchie@FreeBSD.org using -f From: Ana Kukec To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 177306 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2010 21:35:10 -0000 http://p4web.freebsd.org/@@177306?ac=10 Change 177306 by anchie@anchie_malimis on 2010/04/24 21:34:09 Trying to get rid of all possible noise in net/rtsock.c. Affected files ... .. //depot/projects/soc2009/anchie_send/src/sys/net/rtsock.c#26 edit Differences ... ==== //depot/projects/soc2009/anchie_send/src/sys/net/rtsock.c#26 (text+ko) ==== @@ -1,4 +1,4 @@ -/*- +/*- * Copyright (c) 1988, 1991, 1993 * The Regents of the University of California. All rights reserved. * @@ -500,11 +500,11 @@ } info.rti_flags = rtm->rtm_flags; if (info.rti_info[RTAX_DST] == NULL || - info.rti_info[RTAX_DST]->sa_family >= AF_MAX || - (info.rti_info[RTAX_GATEWAY] != NULL && - info.rti_info[RTAX_GATEWAY]->sa_family >= AF_MAX)) { + info.rti_info[RTAX_DST]->sa_family >= AF_MAX || + (info.rti_info[RTAX_GATEWAY] != NULL && + info.rti_info[RTAX_GATEWAY]->sa_family >= AF_MAX)) senderr(EINVAL); - } + /* * Verify that the caller has the appropriate privilege; RTM_GET * is the only operation the non-superuser is allowed.