summaryrefslogtreecommitdiff
path: root/sys/crypto/crypto.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2004-06-20 20:45:07 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2004-06-20 20:45:07 +0000
commit0ab9c5f278e14a9c130f18ce6b6aae88a097f7ee (patch)
tree9f70be42a325f912fbada30058c3edaa733f53da /sys/crypto/crypto.c
parent983f7acdf75e9e0e5f4311c5e16f8c93e9967942 (diff)
In crypto_thread(), always save return value from splimp(). We were only
storing it once on kernel startup. Scary. "holy crap" --deraadt. art@ ok Unclear if this was actually a problem in practice, but this doesn't hurt.
Diffstat (limited to 'sys/crypto/crypto.c')
-rw-r--r--sys/crypto/crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c
index 8087e86bcfe..08d82d0129d 100644
--- a/sys/crypto/crypto.c
+++ b/sys/crypto/crypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto.c,v 1.44 2003/06/03 15:28:06 beck Exp $ */
+/* $OpenBSD: crypto.c,v 1.45 2004/06/20 20:45:06 aaron Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
@@ -664,7 +664,7 @@ crypto_thread(void)
crp_ret_queue = crpt->crp_next;
splx(s);
crpt->crp_callback(crpt);
- splimp();
+ s = splimp();
}
if (krpt) {
/* Remove from the queue. */