mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
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:
parent
ee41348dbd
commit
6182ee6072
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user