From 64c718c0a1b02a28a6f628d98cd5fbde1d17c3fa Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 1 Aug 2022 19:34:37 +0300 Subject: [PATCH] Fix suppression of an expected error. --- tdutils/td/utils/crypto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdutils/td/utils/crypto.cpp b/tdutils/td/utils/crypto.cpp index ad1281518..fd077946b 100644 --- a/tdutils/td/utils/crypto.cpp +++ b/tdutils/td/utils/crypto.cpp @@ -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; } }