Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2011 23:33:08 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r223026 - head/sys/dev/safe
Message-ID:  <201106122333.p5CNX8Nd045934@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Sun Jun 12 23:33:08 2011
New Revision: 223026
URL: http://svn.freebsd.org/changeset/base/223026

Log:
  Use swap32() right.
  
  Submitted by:	gcopper
  MFC after:	2 weeks

Modified:
  head/sys/dev/safe/safe.c

Modified: head/sys/dev/safe/safe.c
==============================================================================
--- head/sys/dev/safe/safe.c	Sun Jun 12 23:09:00 2011	(r223025)
+++ head/sys/dev/safe/safe.c	Sun Jun 12 23:33:08 2011	(r223026)
@@ -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?201106122333.p5CNX8Nd045934>