Skip to content

Commit

Permalink
Re-format the output of an SSL error message
Browse files Browse the repository at this point in the history
To be more compatible with how it was done before.
  • Loading branch information
giacomini committed Jun 14, 2024
1 parent 8866b95 commit ac778b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ac778b8

Please sign in to comment.