From owner-p4-projects@FreeBSD.ORG Sun Feb 8 14:53:30 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E5B9F1065670; Sun, 8 Feb 2009 14:53:29 +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 A0819106564A for ; Sun, 8 Feb 2009 14:53:29 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8D6378FC0A for ; Sun, 8 Feb 2009 14:53:29 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n18ErTes072627 for ; Sun, 8 Feb 2009 14:53:29 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n18ErTe6072625 for perforce@freebsd.org; Sun, 8 Feb 2009 14:53:29 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sun, 8 Feb 2009 14:53:29 GMT Message-Id: <200902081453.n18ErTe6072625@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 157371 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2009 14:53:31 -0000 http://perforce.freebsd.org/chv.cgi?CH=157371 Change 157371 by rwatson@rwatson_cinnamon_macosx on 2009/02/08 14:52:55 Fix mental arithmetic error in IPv6 address encoding for socket_ex tokens. Submitted by: sson Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#88 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#88 (text+ko) ==== @@ -30,7 +30,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#87 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#88 $ */ #include @@ -962,7 +962,7 @@ 5 * sizeof(u_int16_t) + 2 * sizeof(u_int32_t)); else if (so_domain == AF_INET6) GET_TOKEN_AREA(t, dptr, sizeof(u_char) + - 5 * sizeof(u_int16_t) + 16 * sizeof(u_int32_t)); + 5 * sizeof(u_int16_t) + 8 * sizeof(u_int32_t)); else { errno = EINVAL; return (NULL);