Fix suppression of an expected error.

This commit is contained in:
levlam 2022-08-01 19:34:37 +03:00
parent bca2a9c78e
commit 64c718c0a1

View File

@ -1114,7 +1114,7 @@ Status create_openssl_error(int code, Slice message) {
void clear_openssl_errors(Slice source) {
if (ERR_peek_error() != 0) {
auto error = create_openssl_error(0, "Unprocessed OPENSSL_ERROR");
if (!ends_with(error.message(), ":def_load:system lib}]")) {
if (!ends_with(error.message(), ":def_load:system lib}")) {
LOG(ERROR) << source << ": " << error;
}
}