Skip to content

Commit bfdc5a3

Browse files
committed
chore: code cleanup
1 parent a7d8ed1 commit bfdc5a3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/ngx_http_lua_proxy_ssl_verifyby.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ ngx_http_lua_proxy_ssl_verify_handler(X509_STORE_CTX *x509_store, void *arg)
242242
ngx_pool_cleanup_t *cln;
243243
ngx_http_lua_loc_conf_t *llcf;
244244
ngx_http_lua_ssl_ctx_t *cctx;
245-
ngx_http_core_srv_conf_t *cscf;
246245
ngx_ssl_conn_t *ssl_conn;
247246

248247
ssl_conn = X509_STORE_CTX_get_ex_data(x509_store,
@@ -327,15 +326,6 @@ ngx_http_lua_proxy_ssl_verify_handler(X509_STORE_CTX *x509_store, void *arg)
327326

328327
c->log->action = "loading proxy ssl verify by lua";
329328

330-
if (llcf->proxy_ssl_verify_handler == NULL) {
331-
cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);
332-
ngx_log_error(NGX_LOG_ALERT, c->log, 0,
333-
"no proxy_ssl_verify_by_lua* defined in "
334-
"server %V", &cscf->server_name);
335-
336-
goto failed;
337-
}
338-
339329
rc = llcf->proxy_ssl_verify_handler(r, llcf, L);
340330

341331
if (rc >= NGX_OK || rc == NGX_ERROR) {

0 commit comments

Comments
 (0)