diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/ssl_lib.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index eca3c97fac..573e63c934 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_lib.c,v 1.181 2018/03/17 15:48:31 tb Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.182 2018/03/17 16:20:01 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1791,6 +1791,11 @@ SSL_CTX_new(const SSL_METHOD *meth) | |||
| 1791 | { | 1791 | { |
| 1792 | SSL_CTX *ret; | 1792 | SSL_CTX *ret; |
| 1793 | 1793 | ||
| 1794 | if (!OPENSSL_init_ssl(0, NULL)) { | ||
| 1795 | SSLerrorx(SSL_R_LIBRARY_BUG); | ||
| 1796 | return (NULL); | ||
| 1797 | } | ||
| 1798 | |||
| 1794 | if (meth == NULL) { | 1799 | if (meth == NULL) { |
| 1795 | SSLerrorx(SSL_R_NULL_SSL_METHOD_PASSED); | 1800 | SSLerrorx(SSL_R_NULL_SSL_METHOD_PASSED); |
| 1796 | return (NULL); | 1801 | return (NULL); |
