summaryrefslogtreecommitdiff
path: root/sys/crypto/crypto.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-13 17:46:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-13 17:46:00 +0000
commit97dfc63eacbafea881165eff604b624ee8a0776b (patch)
treef71925c9cc58d5a7f046fdbe1d1f246f167be4c9 /sys/crypto/crypto.c
parentadb02752738f50de1e1ca94ddd56ab873379aae0 (diff)
incorrect check
Diffstat (limited to 'sys/crypto/crypto.c')
-rw-r--r--sys/crypto/crypto.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c
index 4b4f5c5462f..3061243ee6b 100644
--- a/sys/crypto/crypto.c
+++ b/sys/crypto/crypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto.c,v 1.28 2001/11/09 03:11:38 deraadt Exp $ */
+/* $OpenBSD: crypto.c,v 1.29 2001/11/13 17:45:59 deraadt Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
@@ -69,9 +69,6 @@ crypto_newsession(u_int64_t *sid, struct cryptoini *cri, int hard)
(crypto_drivers[hid].cc_flags & CRYPTOCAP_F_CLEANUP))
continue;
- if (crypto_drivers[hid].cc_sessions == 0)
- continue;
-
/* Hardware requested -- ignore software drivers. */
if (hard &&
(crypto_drivers[hid].cc_flags & CRYPTOCAP_F_SOFTWARE))