Skip to content

Commit

Permalink
Fix crash with -banversion (#432)
Browse files Browse the repository at this point in the history
Fixes the range of the for loop which was causing a client crash when using the -banversion argument.
  • Loading branch information
alex v authored Mar 21, 2019
1 parent cbffaee commit a25b139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6653,7 +6653,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
std::vector<std::string> vBannedVersions = mapMultiArgs["-banversion"];
bool fBanned = false;

for (unsigned int i = 0; i <= vBannedVersions.size(); i++)
for (unsigned int i = 0; i < vBannedVersions.size(); i++)
{
if(vBannedVersions[i] == pfrom->cleanSubVer)
{
Expand Down

0 comments on commit a25b139

Please sign in to comment.