summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>2002-06-19 02:19:05 +0000
committerderaadt <>2002-06-19 02:19:05 +0000
commit82d47451abfdc1a8cff7b01169c03445fcc7756a (patch)
treea8c2371d328b801899330f493920f02a15ac11a0 /src
parentafa3750ba89b7b016ff076ba513472cbd392c24e (diff)
downloadopenbsd-82d47451abfdc1a8cff7b01169c03445fcc7756a.tar.gz
openbsd-82d47451abfdc1a8cff7b01169c03445fcc7756a.tar.bz2
openbsd-82d47451abfdc1a8cff7b01169c03445fcc7756a.zip
stupid stupid bug ja ja ja ja
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/engine/hw_cryptodev.c2
-rw-r--r--src/lib/libssl/src/crypto/engine/hw_cryptodev.c2
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()
117 static int fd = -1; 117 static int fd = -1;
118 118
119 if (fd == -1) { 119 if (fd == -1) {
120 if (fd = open("/dev/crypto", O_RDWR, 0) == -1) 120 if ((fd = open("/dev/crypto", O_RDWR, 0)) == -1)
121 return (-1); 121 return (-1);
122 /* close on exec */ 122 /* close on exec */
123 if (fcntl(fd, F_SETFD, 1) == -1) { 123 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()
117 static int fd = -1; 117 static int fd = -1;
118 118
119 if (fd == -1) { 119 if (fd == -1) {
120 if (fd = open("/dev/crypto", O_RDWR, 0) == -1) 120 if ((fd = open("/dev/crypto", O_RDWR, 0)) == -1)
121 return (-1); 121 return (-1);
122 /* close on exec */ 122 /* close on exec */
123 if (fcntl(fd, F_SETFD, 1) == -1) { 123 if (fcntl(fd, F_SETFD, 1) == -1) {