diff src/stream/ngx_stream.c @ 6736:f41c2530dd17

Modules compatibility: removed dependencies on NGX_STREAM_SSL. External structures are now identical regardless of stream SSL module compiled in or not.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 10 Oct 2016 18:44:17 +0300
parents cebf5fed00bf
children d7ce41bdf050
line wrap: on
line diff
--- a/src/stream/ngx_stream.c
+++ b/src/stream/ngx_stream.c
@@ -293,14 +293,12 @@ ngx_stream_init_phases(ngx_conf_t *cf, n
         return NGX_ERROR;
     }
 
-#if (NGX_STREAM_SSL)
     if (ngx_array_init(&cmcf->phases[NGX_STREAM_SSL_PHASE].handlers,
                        cf->pool, 1, sizeof(ngx_stream_handler_pt))
         != NGX_OK)
     {
         return NGX_ERROR;
     }
-#endif
 
     if (ngx_array_init(&cmcf->phases[NGX_STREAM_PREREAD_PHASE].handlers,
                        cf->pool, 1, sizeof(ngx_stream_handler_pt))