Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_proxy_module.c @ 8336:7ce28b4cc57e
SSL: fixed build by Sun C with old OpenSSL versions.
Sun C complains about "statement not reached" if a "return" is followed
by additional statements.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 05 Mar 2021 17:16:13 +0300 |
parents | 529b73f75d19 |
children | bdd4d89370a7 |
comparison
equal
deleted
inserted
replaced
8335:529b73f75d19 | 8336:7ce28b4cc57e |
---|---|
4911 static char * | 4911 static char * |
4912 ngx_http_proxy_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data) | 4912 ngx_http_proxy_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data) |
4913 { | 4913 { |
4914 #ifndef SSL_CONF_FLAG_FILE | 4914 #ifndef SSL_CONF_FLAG_FILE |
4915 return "is not supported on this platform"; | 4915 return "is not supported on this platform"; |
4916 #else | |
4917 return NGX_CONF_OK; | |
4916 #endif | 4918 #endif |
4917 | |
4918 return NGX_CONF_OK; | |
4919 } | 4919 } |
4920 | 4920 |
4921 | 4921 |
4922 static ngx_int_t | 4922 static ngx_int_t |
4923 ngx_http_proxy_set_ssl(ngx_conf_t *cf, ngx_http_proxy_loc_conf_t *plcf) | 4923 ngx_http_proxy_set_ssl(ngx_conf_t *cf, ngx_http_proxy_loc_conf_t *plcf) |