From ac778b8bac75bca172d9e927f696998c4b9e004e Mon Sep 17 00:00:00 2001 From: Francesco Giacomini Date: Fri, 14 Jun 2024 15:18:19 +0200 Subject: [PATCH] Re-format the output of an SSL error message To be more compatible with how it was done before. --- src/common/data.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/data.cc b/src/common/data.cc index 494cc381..9941ff69 100644 --- a/src/common/data.cc +++ b/src/common/data.cc @@ -157,8 +157,8 @@ std::string OpenSSLError(bool debug) std::size_t const buf_size = 256; char buf[buf_size]; ERR_error_string_n(code, buf, buf_size); - os << buf << ':' << file << ':' - << line << ':' << (data && (flags & ERR_TXT_STRING) ? data : "") << '\n'; + os << file << ':' << line << ':' + << buf << (data && (flags & ERR_TXT_STRING) ? data : "") << '\n'; code = ERR_get_error_line_data(&file, &line, &data, &flags); }