]> git.kaiwu.me - nginx.git/commitdiff
nginx uses SSL mode for a listen socket with any option set,
authorIgor Sysoev <igor@sysoev.ru>
Tue, 28 Sep 2010 06:50:52 +0000 (06:50 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 28 Sep 2010 06:50:52 +0000 (06:50 +0000)
the bug has been introduced in r3765

src/http/ngx_http.c

index 58fc7afe5b87a37baedb835ed3d228569adfd04b..4ecd50ce8317ce33e4625867798319acd055f2ad 100644 (file)
@@ -1274,7 +1274,7 @@ ngx_http_add_addresses(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf,
         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) {