summaryrefslogtreecommitdiff
path: root/usr/src/cmd/cmd-crypto
diff options
context:
space:
mode:
authormcpowers <none@none>2006-10-04 10:17:37 -0700
committermcpowers <none@none>2006-10-04 10:17:37 -0700
commit407eb7cc0bcf1bc14f8cd498d68af0782e777f74 (patch)
treeca14ad5625fe7ba3aa4fb060a91cd470e22de24e /usr/src/cmd/cmd-crypto
parenta9373739f3f0d2b3ce603d100a38deb4093b7a3c (diff)
downloadillumos-joyent-407eb7cc0bcf1bc14f8cd498d68af0782e777f74.tar.gz
6474874 cryptoadm(1M) silently re-enables random number operations
Diffstat (limited to 'usr/src/cmd/cmd-crypto')
-rw-r--r--usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c b/usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
index 0a2712a324..51d9519367 100644
--- a/usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
+++ b/usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
@@ -290,14 +290,16 @@ disable_kef_hardware(char *provname, boolean_t rndflag, boolean_t allflag,
* cryptoadm(1M) level to the "random" mechanism in kCF.
*/
if (!rndflag) {
- (void) filter_mechlist(&infolist, RANDOM);
+ (void) filter_mechlist(&dislist, RANDOM);
}
/* Calculate the new disabled list */
if (disable_mechs(&pent, infolist, allflag, dislist) == FAILURE) {
+ free_mechlist(infolist);
free_entry(pent);
return (FAILURE);
}
+ free_mechlist(infolist);
/* If no mechanisms are to be disabled, return */
if (pent->dis_count == 0) {