@@ -62,7 +62,7 @@ ngx_http_lua_proxy_ssl_verify_set_callback(ngx_conf_t *cf)
6262 return NGX_ERROR ;
6363 }
6464
65- #if (!defined SSL_ERROR_WANT_RETRY_VERIFY \
65+ #if (!defined SSL_ERROR_WANT_RETRY_VERIFY \
6666 || OPENSSL_VERSION_NUMBER < 0x30000020L )
6767
6868 ngx_log_error (NGX_LOG_EMERG , cf -> log , 0 , "OpenSSL too old to support "
@@ -150,7 +150,7 @@ char *
150150ngx_http_lua_proxy_ssl_verify_by_lua (ngx_conf_t * cf , ngx_command_t * cmd ,
151151 void * conf )
152152{
153- #if (!defined SSL_ERROR_WANT_RETRY_VERIFY \
153+ #if (!defined SSL_ERROR_WANT_RETRY_VERIFY \
154154 || OPENSSL_VERSION_NUMBER < 0x30000020L )
155155
156156 /* SSL_set_retry_verify() was added in OpenSSL 3.0.2 */
@@ -339,7 +339,8 @@ ngx_http_lua_proxy_ssl_verify_handler(X509_STORE_CTX *x509_store, void *arg)
339339
340340 ngx_log_debug2 (NGX_LOG_DEBUG_HTTP , c -> log , 0 ,
341341 "proxy_ssl_verify_by_lua: handler return value: %i, "
342- "cert verify callback exit code: %d" , rc , cctx -> exit_code );
342+ "cert verify callback exit code: %d" , rc ,
343+ cctx -> exit_code );
343344
344345 c -> log -> action = "proxy pass SSL handshaking" ;
345346 return cctx -> exit_code ;
@@ -370,6 +371,7 @@ ngx_http_lua_proxy_ssl_verify_handler(X509_STORE_CTX *x509_store, void *arg)
370371 return SSL_set_retry_verify (ssl_conn );
371372
372373failed :
374+
373375 if (cctx && cctx -> pool ) {
374376 ngx_destroy_pool (cctx -> pool );
375377 }
0 commit comments