From 82d47451abfdc1a8cff7b01169c03445fcc7756a Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Wed, 19 Jun 2002 02:19:05 +0000 Subject: stupid stupid bug ja ja ja ja --- src/lib/libcrypto/engine/hw_cryptodev.c | 2 +- src/lib/libssl/src/crypto/engine/hw_cryptodev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/libcrypto/engine/hw_cryptodev.c b/src/lib/libcrypto/engine/hw_cryptodev.c index b8217cdea1..f2d43d55e5 100644 --- a/src/lib/libcrypto/engine/hw_cryptodev.c +++ b/src/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) { diff --git a/src/lib/libssl/src/crypto/engine/hw_cryptodev.c b/src/lib/libssl/src/crypto/engine/hw_cryptodev.c index b8217cdea1..f2d43d55e5 100644 --- a/src/lib/libssl/src/crypto/engine/hw_cryptodev.c +++ b/src/lib/libssl/src/crypto/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) { -- cgit v1.2.3-55-g6feb