mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-03 08:46:36 +00:00
add defensive 0
This commit is contained in:
@@ -241,7 +241,7 @@ verifyHandshake(
|
||||
|
||||
if (auto const iter = headers.find("Network-ID"); iter != headers.end())
|
||||
{
|
||||
std::uint32_t nid;
|
||||
std::uint32_t nid{0};
|
||||
|
||||
if (!beast::lexicalCastChecked(nid, std::string(iter->value())))
|
||||
throw std::runtime_error("Invalid peer network identifier");
|
||||
|
||||
Reference in New Issue
Block a user