Skip to content

Commit a25b139

Browse files
author
alex v
authored
Fix crash with -banversion (#432)
Fixes the range of the for loop which was causing a client crash when using the -banversion argument.
1 parent cbffaee commit a25b139

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6653,7 +6653,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
66536653
std::vector<std::string> vBannedVersions = mapMultiArgs["-banversion"];
66546654
bool fBanned = false;
66556655

6656-
for (unsigned int i = 0; i <= vBannedVersions.size(); i++)
6656+
for (unsigned int i = 0; i < vBannedVersions.size(); i++)
66576657
{
66586658
if(vBannedVersions[i] == pfrom->cleanSubVer)
66596659
{

0 commit comments

Comments
 (0)