summaryrefslogtreecommitdiff
path: root/sys/crypto
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-13 18:54:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-13 18:54:33 +0000
commit2ced04492830e6a30a38387ba29efcd1e28b0c07 (patch)
tree5f8dcc721349facb25a4481a68fcafd1f512fb13 /sys/crypto
parentad51ea863eb5ffc56646dd2b52ea57ca5c7a3fef (diff)
and for the case where it allocates a bunch at a time, also make sure the
software flag gets set.
Diffstat (limited to 'sys/crypto')
-rw-r--r--sys/crypto/crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c
index 3061243ee6b..a9192d0dcce 100644
--- a/sys/crypto/crypto.c
+++ b/sys/crypto/crypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto.c,v 1.29 2001/11/13 17:45:59 deraadt Exp $ */
+/* $OpenBSD: crypto.c,v 1.30 2001/11/13 18:54:32 deraadt Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
@@ -178,6 +178,7 @@ crypto_get_driverid(u_int8_t flags)
!(crypto_drivers[i].cc_flags & CRYPTOCAP_F_CLEANUP) &&
crypto_drivers[i].cc_sessions == 0) {
crypto_drivers[i].cc_sessions = 1; /* Mark */
+ crypto_drivers[i].cc_flags = flags;
splx(s);
return i;
}