diff src/http/ngx_http.c @ 600:5dc296c4372a NGINX_0_8_52

nginx 0.8.52 *) Bugfix: nginx used SSL mode for a listen socket if any listen option was set; the bug had appeared in 0.8.51.
author Igor Sysoev <http://sysoev.ru>
date Tue, 28 Sep 2010 00:00:00 +0400
parents be70f83b184f
children 7ea1bba9a4f6
line wrap: on
line diff
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -1274,7 +1274,7 @@ ngx_http_add_addresses(ngx_conf_t *cf, n
         default_server = addr[i].opt.default_server;
 
 #if (NGX_HTTP_SSL)
-        ssl = lsopt->ssl || addr[i].opt.set;
+        ssl = lsopt->ssl || addr[i].opt.ssl;
 #endif
 
         if (lsopt->set) {