Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Josh Wilcox
crown-core
Commits
0ead43d1
Commit
0ead43d1
authored
10 years ago
by
Wladimir J. van der Laan
Committed by
infernoman
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
src/main.cpp: endian compatibility in packet checksum check
parent
12ae18b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.cpp
+1
-2
src/main.cpp
with
1 addition
and
2 deletions
+1
-2
src/main.cpp
View file @
0ead43d1
...
...
@@ -5220,8 +5220,7 @@ bool ProcessMessages(CNode* pfrom)
// Checksum
CDataStream& vRecv = msg.vRecv;
uint256 hash = Hash(vRecv.begin(), vRecv.begin() + nMessageSize);
unsigned
int
nChecksum
=
0
;
memcpy
(
&
nChecksum
,
&
hash
,
sizeof
(
nChecksum
));
unsigned int nChecksum = ReadLE32((unsigned char*)&hash);
if (nChecksum != hdr.nChecksum)
{
LogPrintf("ProcessMessages(%s, %u bytes): CHECKSUM ERROR nChecksum=%08x hdr.nChecksum=%08x\n",
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment