comparison src/http/modules/ngx_http_grpc_module.c @ 7787: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 88eca63261c3
children 6df9d7df2784
comparison
equal deleted inserted replaced
7786:529b73f75d19 7787:7ce28b4cc57e
4839 static char * 4839 static char *
4840 ngx_http_grpc_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data) 4840 ngx_http_grpc_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
4841 { 4841 {
4842 #ifndef SSL_CONF_FLAG_FILE 4842 #ifndef SSL_CONF_FLAG_FILE
4843 return "is not supported on this platform"; 4843 return "is not supported on this platform";
4844 #else
4845 return NGX_CONF_OK;
4844 #endif 4846 #endif
4845
4846 return NGX_CONF_OK;
4847 } 4847 }
4848 4848
4849 4849
4850 static ngx_int_t 4850 static ngx_int_t
4851 ngx_http_grpc_set_ssl(ngx_conf_t *cf, ngx_http_grpc_loc_conf_t *glcf) 4851 ngx_http_grpc_set_ssl(ngx_conf_t *cf, ngx_http_grpc_loc_conf_t *glcf)