Trace OpenSSL error as const char*
Remove extent from char buffer for fetching OpenSSL errors. TraceEvent::detail() interprets passed char[] as string literal and prints trailing \0s.
This commit is contained in:
parent
e4d204daf0
commit
ee9a047cbd
|
@ -52,7 +52,7 @@ public:
|
|||
0,
|
||||
};
|
||||
::ERR_error_string_n(err, buf, sizeof(buf));
|
||||
te.detail("OpenSSLError", buf);
|
||||
te.detail("OpenSSLError", static_cast<const char*>(buf));
|
||||
}
|
||||
throw tls_error();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue