summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorPeter Shoults <Peter.Shoults@Sun.COM>2010-02-18 12:22:26 -0500
committerPeter Shoults <Peter.Shoults@Sun.COM>2010-02-18 12:22:26 -0500
commit35e10258ba32a30135d21a0eb501bb007e682004 (patch)
treebc0a036620dd853436744324c74fd6cb22bebe5b /usr/src
parent31dd2c848f40e3aba523a7d65034e364ca1f67f0 (diff)
downloadillumos-joyent-35e10258ba32a30135d21a0eb501bb007e682004.tar.gz
6920699 The bzero in arcfour_hmac_md5_encrypt() should also be applied to arcfour_hmac_md5_decrypt()
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/io/cryptmod.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/cryptmod.c b/usr/src/uts/common/io/cryptmod.c
index 6a850b8308..ad6c5fb2f0 100644
--- a/usr/src/uts/common/io/cryptmod.c
+++ b/usr/src/uts/common/io/cryptmod.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* STREAMS Crypto Module
@@ -1761,6 +1761,8 @@ arcfour_hmac_md5_decrypt(queue_t *q, struct tmodinfo *tmi, mblk_t *mp,
crypto_mechanism_t mech;
int usage;
+ bzero(&indata, sizeof (indata));
+
/* The usage constant is 1026 for all "old" rcmd mode operations */
if (tmi->dec_data.option_mask & CRYPTOPT_RCMD_MODE_V1)
usage = RCMDV1_USAGE;