Fix asserting when building against libstdc++ in debug mode.

This code was safe as the pointer was never actually dereferenced
but libstdc++ would assert on it anyway.
This commit is contained in:
Sadie Powell 2022-11-28 10:59:49 +00:00
parent ee41348dbd
commit 6182ee6072

View File

@ -1200,7 +1200,7 @@ info_done_dealloc:
bool GetServerName(std::string& out) const CXX11_OVERRIDE bool GetServerName(std::string& out) const CXX11_OVERRIDE
{ {
std::vector<char> nameBuffer; std::vector<char> nameBuffer(1);
size_t nameLength = 0; size_t nameLength = 0;
unsigned int nameType = GNUTLS_NAME_DNS; unsigned int nameType = GNUTLS_NAME_DNS;