diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-08-05 15:42:30 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-08-05 15:43:10 +0200 |
commit | c3848000277d5ab6b5f5faecb1d21b89374ef999 (patch) | |
tree | ea62f8f84cfe6c7d7b11189e048969399d80b6ae /src/main.cpp | |
parent | c9c017adf6a7b78f609f5fc61fd91dfa2e3d9662 (diff) | |
parent | 7b79cbd722d35b8113d5136b06d4a8e5fd569fc6 (diff) |
Merge pull request #6462
7b79cbd limit total length of user agent comments (Pavol Rusnak)
557f8ea implement uacomment config parameter which can add comments to user agent as per BIP-0014 (Pavol Rusnak)
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 14f36762c9..52d543c117 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3898,7 +3898,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, if (!vRecv.empty()) vRecv >> addrFrom >> nNonce; if (!vRecv.empty()) { - vRecv >> LIMITED_STRING(pfrom->strSubVer, 256); + vRecv >> LIMITED_STRING(pfrom->strSubVer, MAX_SUBVERSION_LENGTH); pfrom->cleanSubVer = SanitizeString(pfrom->strSubVer); } if (!vRecv.empty()) |