]> git.kaiwu.me - nginx.git/commitdiff
SSL: fixed build by Sun C with old OpenSSL versions.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 5 Mar 2021 14:16:13 +0000 (17:16 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 5 Mar 2021 14:16:13 +0000 (17:16 +0300)
Sun C complains about "statement not reached" if a "return" is followed
by additional statements.

src/http/modules/ngx_http_grpc_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_ssl_module.c
src/http/modules/ngx_http_uwsgi_module.c
src/mail/ngx_mail_ssl_module.c
src/stream/ngx_stream_proxy_module.c
src/stream/ngx_stream_ssl_module.c

index aa7576561437abd8587025eb1c15f787107bf02b..f5bf575c2fb4dd703cf4e3d9ce0e24fc3e6e76df 100644 (file)
@@ -4841,9 +4841,9 @@ ngx_http_grpc_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
 {
 #ifndef SSL_CONF_FLAG_FILE
     return "is not supported on this platform";
-#endif
-
+#else
     return NGX_CONF_OK;
+#endif
 }
 
 
index 27266676d6780ef76cfc8f2b0085bab8131f604d..a63c3ed54dadbfd44fa54f15ec45bed0ca3efb68 100644 (file)
@@ -4913,9 +4913,9 @@ ngx_http_proxy_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
 {
 #ifndef SSL_CONF_FLAG_FILE
     return "is not supported on this platform";
-#endif
-
+#else
     return NGX_CONF_OK;
+#endif
 }
 
 
index e062b03a116cecfb72f0941c827681d4121ace9f..a47d6963a5f856248e85402593589785cf4390de 100644 (file)
@@ -1274,9 +1274,9 @@ ngx_http_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
 {
 #ifndef SSL_CONF_FLAG_FILE
     return "is not supported on this platform";
-#endif
-
+#else
     return NGX_CONF_OK;
+#endif
 }
 
 
index bf2732675e851f1d904f6a53ffb68e3c5886293f..1334f44c9a42b6ce739bae5a4006755234033c35 100644 (file)
@@ -2398,9 +2398,9 @@ ngx_http_uwsgi_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
 {
 #ifndef SSL_CONF_FLAG_FILE
     return "is not supported on this platform";
-#endif
-
+#else
     return NGX_CONF_OK;
+#endif
 }
 
 
index d560bd60c7f5727f03734d1cebd400af52f58fa7..7eae83e2561dd959b5b631d6b74ab75de48e035c 100644 (file)
@@ -682,7 +682,7 @@ ngx_mail_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
 {
 #ifndef SSL_CONF_FLAG_FILE
     return "is not supported on this platform";
-#endif
-
+#else
     return NGX_CONF_OK;
+#endif
 }
index 0c86083c55b6992de2ea1931d3e5b0be5978aa19..01cda7a365d554b55ca50b710d85826ae2ff6ebf 100644 (file)
@@ -1026,9 +1026,9 @@ ngx_stream_proxy_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
 {
 #ifndef SSL_CONF_FLAG_FILE
     return "is not supported on this platform";
-#endif
-
+#else
     return NGX_CONF_OK;
+#endif
 }
 
 
index ccd359f3b7011a01f8c7bd185e8a815ff1dee512..d8c0471eaf0527d080b9694e4048cc8a2987bd4a 100644 (file)
@@ -1061,9 +1061,9 @@ ngx_stream_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
 {
 #ifndef SSL_CONF_FLAG_FILE
     return "is not supported on this platform";
-#endif
-
+#else
     return NGX_CONF_OK;
+#endif
 }