[nginx] svn commit: r4415 - trunk/src/event

mdounin at mdounin.ru mdounin at mdounin.ru
Mon Jan 30 07:38:27 UTC 2012


Author: mdounin
Date: 2012-01-30 07:38:27 +0000 (Mon, 30 Jan 2012)
New Revision: 4415

Log:
Removed ENGINE_load_builtin_engines() call.

It's already called by OPENSSL_config().  Calling it again causes some
openssl engines (notably GOST) to corrupt memory, as they don't expect
to be created more than once.


Modified:
   trunk/src/event/ngx_event_openssl.c

Modified: trunk/src/event/ngx_event_openssl.c
===================================================================
--- trunk/src/event/ngx_event_openssl.c	2012-01-24 10:20:42 UTC (rev 4414)
+++ trunk/src/event/ngx_event_openssl.c	2012-01-30 07:38:27 UTC (rev 4415)
@@ -92,8 +92,6 @@
     SSL_library_init();
     SSL_load_error_strings();
 
-    ENGINE_load_builtin_engines();
-
     OpenSSL_add_all_algorithms();
 
     ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);



More information about the nginx-devel mailing list