Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brotli: Don't leave errors behind if loading library failed.
If brolti support is dynamic then it is loaded at runtime and may fail if the library is not available. The library can be loaded even if the user did not ask for it, for instance via SSL_CTX_new_ex() -> ossl_comp_has_alg(). Leaving an error record can have other side effects if the user is poping the stack and notices and aborts due it. Use ERR_set_mark()/ ERR_pop_to_mark() to avoid leaving marks if library loading failed. Fixes: openssl#23558 Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
- Loading branch information