1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/security/openssl/files/patch-openbsd__hw.c
Dirk Meyer a4e7653b21 - Security update to 1.0.2a
- termios.h now default
- fix patches
- fix manpage generation
- option ZLIB removed from default
- restore padlock support
- restore RFC-5705
- restore patch history
- restore build on older FreeBSD
- restore soname
Security: https://www.openssl.org/news/secadv_20150319.txt
Security: CVE-2015-0291
Security: CVE-2015-0204
Security: CVE-2015-0290
Security: CVE-2015-0207
Security: CVE-2015-0286
Security: CVE-2015-0208
Security: CVE-2015-0287
Security: CVE-2015-0289
Security: CVE-2015-0292
Security: CVE-2015-0293
Security: CVE-2015-1787
Security: CVE-2015-0285
Security: CVE-2015-0209
Security: CVE-2015-0288
2015-03-21 10:53:13 +00:00

15 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);