Skip to content

Commit 1e5970b

Browse files
authored
chore: delete unnecessary checking codes.
1 parent 5797e9d commit 1e5970b

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

‎src/ngx_stream_lua_ssl_certby.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,6 @@ ngx_stream_lua_ssl_cert_handler(ngx_ssl_conn_t *ssl_conn, void *data)
309309

310310
c->log->action = "loading SSL certificate by lua";
311311

312-
if (lscf->srv.ssl_cert_handler == NULL) {
313-
314-
ngx_log_error(NGX_LOG_ALERT, c->log, 0,
315-
"no ssl_certificate_by_lua* defined in "
316-
"server %s:%ui", &cscf->file_name, &cscf->line);
317-
318-
goto failed;
319-
}
320-
321312
rc = lscf->srv.ssl_cert_handler(r, lscf, L);
322313

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

‎src/ngx_stream_lua_ssl_client_helloby.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,6 @@ ngx_stream_lua_ssl_client_hello_handler(ngx_ssl_conn_t *ssl_conn,
301301

302302
c->log->action = "loading SSL client hello by lua";
303303

304-
if (lscf->srv.ssl_client_hello_handler == NULL) {
305-
306-
ngx_log_error(NGX_LOG_ALERT, c->log, 0,
307-
"no ssl_client_hello_by_lua* defined in "
308-
"server %s:%ui", &cscf->file_name, &cscf->line);
309-
310-
goto failed;
311-
}
312-
313304
rc = lscf->srv.ssl_client_hello_handler(r, lscf, L);
314305

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

0 commit comments

Comments
 (0)