From owner-cvs-src-old@FreeBSD.ORG Thu Feb 5 15:04:35 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 620C2106566B for ; Thu, 5 Feb 2009 15:04:35 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4F7CC8FC17 for ; Thu, 5 Feb 2009 15:04:35 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n15F4ZWl053557 for ; Thu, 5 Feb 2009 15:04:35 GMT (envelope-from jamie@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n15F4Z82053556 for cvs-src-old@freebsd.org; Thu, 5 Feb 2009 15:04:35 GMT (envelope-from jamie@repoman.freebsd.org) Message-Id: <200902051504.n15F4Z82053556@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jamie@repoman.freebsd.org using -f From: Jamie Gritton Date: Thu, 5 Feb 2009 15:04:23 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet6 udp6_usrreq.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 15:04:36 -0000 jamie 2009-02-05 15:04:23 UTC FreeBSD src repository Modified files: sys/netinet6 udp6_usrreq.c Log: SVN rev 188151 on 2009-02-05 15:04:23Z by jamie Don't bother null-checking the thread pointer before the prison checks in udp6_connect (td is already dereferenced elsewhere without such a check). This makes the conversion from a sockaddr to a sockaddr_in6 always happen, so convert once at the beginning of the function rather than twice in the middle. Approved by: bz (mentor) Revision Changes Path 1.107 +22 -27 src/sys/netinet6/udp6_usrreq.c