diff options
| author | Pavol Rusnak <[email protected]> | 2015-07-31 18:05:42 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-08-05 09:38:20 +0200 |
| commit | 7b79cbd722d35b8113d5136b06d4a8e5fd569fc6 (patch) | |
| tree | 484ed735e5644daf574fbf4bc2dedfe035a29373 /src/main.cpp | |
| parent | implement uacomment config parameter (diff) | |
| download | discoin-7b79cbd722d35b8113d5136b06d4a8e5fd569fc6.tar.xz discoin-7b79cbd722d35b8113d5136b06d4a8e5fd569fc6.zip | |
limit total length of user agent comments
Reworked-By: Wladimir J. van der Laan <[email protected]>
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 d470ba900..b1f5e3ffd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3859,7 +3859,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()) |