summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-19 02:19:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-19 02:19:06 +0000
commitc9ba00fa634487c0537b5fb6912890111d8008da (patch)
tree60bfbaa1b048513c83d8190081b92f96f5ec4194
parent6988e5b9730596facdb54fe60f0e2d7c369043b7 (diff)
stupid stupid bug ja ja ja ja
-rw-r--r--lib/libcrypto/engine/hw_cryptodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/engine/hw_cryptodev.c b/lib/libcrypto/engine/hw_cryptodev.c
index b8217cdea1d..f2d43d55e5f 100644
--- a/lib/libcrypto/engine/hw_cryptodev.c
+++ b/lib/libcrypto/engine/hw_cryptodev.c
@@ -117,7 +117,7 @@ open_dev_crypto()
static int fd = -1;
if (fd == -1) {
- if (fd = open("/dev/crypto", O_RDWR, 0) == -1)
+ if ((fd = open("/dev/crypto", O_RDWR, 0)) == -1)
return (-1);
/* close on exec */
if (fcntl(fd, F_SETFD, 1) == -1) {