From dcfe53c4797d0db110bbda53ac8bd589c83ea541 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Wed, 2 Jul 2025 10:26:48 +0200 Subject: [PATCH] add defensive 0 --- src/ripple/overlay/impl/Handshake.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/overlay/impl/Handshake.cpp b/src/ripple/overlay/impl/Handshake.cpp index 7fda94019..907604c80 100644 --- a/src/ripple/overlay/impl/Handshake.cpp +++ b/src/ripple/overlay/impl/Handshake.cpp @@ -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");