diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-02-09 10:43:45 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-02-09 10:43:53 +0100 |
| commit | 32a8b6a9d771aeff805898df1fe36ca9d0eb63a4 (patch) | |
| tree | 052974da2c9aba3e088f4e714f66a0962cda6710 /src/net.cpp | |
| parent | Merge pull request #5721 (diff) | |
| parent | Sanitize command strings before logging them. (diff) | |
| download | discoin-32a8b6a9d771aeff805898df1fe36ca9d0eb63a4.tar.xz discoin-32a8b6a9d771aeff805898df1fe36ca9d0eb63a4.zip | |
Merge pull request #5770
28d4cff Sanitize command strings before logging them. (Gregory Maxwell)
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index e4ab9d706..3c3666615 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1971,7 +1971,7 @@ void CNode::BeginMessage(const char* pszCommand) EXCLUSIVE_LOCK_FUNCTION(cs_vSen ENTER_CRITICAL_SECTION(cs_vSend); assert(ssSend.size() == 0); ssSend << CMessageHeader(pszCommand, 0); - LogPrint("net", "sending: %s ", pszCommand); + LogPrint("net", "sending: %s ", SanitizeString(pszCommand)); } void CNode::AbortMessage() UNLOCK_FUNCTION(cs_vSend) |