Skip to content

Commit b4609c1

Browse files
committed
bugfix: ngx_http_lua_ffi_ssl_create_ocsp_request: we did not clear the openssl stack errors in the right place.
1 parent 3f4eba7 commit b4609c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngx_http_lua_ssl_ocsp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,6 @@ ngx_http_lua_ffi_ssl_create_ocsp_request(const char *chain_data,
233233
X509_free(cert);
234234
BIO_free(bio);
235235

236-
ERR_clear_error();
237-
238236
return NGX_OK;
239237

240238
failed:
@@ -255,6 +253,8 @@ ngx_http_lua_ffi_ssl_create_ocsp_request(const char *chain_data,
255253
BIO_free(bio);
256254
}
257255

256+
ERR_clear_error();
257+
258258
return rc;
259259

260260
#endif /* NGX_HTTP_LUA_USE_OCSP */

0 commit comments

Comments
 (0)