opnsense-ports/security/openssl/files/patch-openbsd__hw.c
Franco Fichtner 89b27eefbb security/openssl: sync with upstream
Taken from: FreeBSD
2015-06-12 07:09:58 +02:00

14 lines
412 B
C

--- crypto/evp/openbsd_hw.c.orig 2015-01-22 15:58:32.000000000 +0100
+++ crypto/evp/openbsd_hw.c 2015-03-10 07:08:45.000000000 +0100
@@ -108,7 +108,10 @@
dev_failed = 1;
return 0;
}
- close(cryptodev_fd);
+ if (fd == -1)
+ fd = cryptodev_fd;
+ else
+ close(cryptodev_fd);
}
assert(ses);
memset(ses, '\0', sizeof *ses);