Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2011 07:12:49 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r223560 - stable/8/sys/dev/safe
Message-ID:  <201106260712.p5Q7CnRu040529@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Sun Jun 26 07:12:48 2011
New Revision: 223560
URL: http://svn.freebsd.org/changeset/base/223560

Log:
  Use swap32() right.
  
  Submitted by:	gcopper

Modified:
  stable/8/sys/dev/safe/safe.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/dev/safe/safe.c
==============================================================================
--- stable/8/sys/dev/safe/safe.c	Sun Jun 26 04:00:49 2011	(r223559)
+++ stable/8/sys/dev/safe/safe.c	Sun Jun 26 07:12:48 2011	(r223560)
@@ -1580,9 +1580,12 @@ safe_callback(struct safe_softc *sc, str
 				 * SHA-1 ICV's are byte-swapped; fix 'em up
 				 * before copy them to their destination.
 				 */
-				bswap32(re->re_sastate.sa_saved_indigest[0]);
-				bswap32(re->re_sastate.sa_saved_indigest[1]);
-				bswap32(re->re_sastate.sa_saved_indigest[2]);
+				re->re_sastate.sa_saved_indigest[0] =
+				    bswap32(re->re_sastate.sa_saved_indigest[0]);
+				re->re_sastate.sa_saved_indigest[1] =
+				    bswap32(re->re_sastate.sa_saved_indigest[1]);
+				re->re_sastate.sa_saved_indigest[2] =
+				    bswap32(re->re_sastate.sa_saved_indigest[2]);
 			}
 			crypto_copyback(crp->crp_flags, crp->crp_buf,
 			    crd->crd_inject,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106260712.p5Q7CnRu040529>