Skip to content

Conversation

@TheBlueMatt
Copy link
Contributor

(aside from some boost::thread ones on win32)
Fixes:
src/net.h: In member function ‘void CNode::EndMessage()’:
src/net.h:374: warning: invalid access to non-static data member ‘CMessageHeader::nMessageSize’ of NULL object
src/net.h:374: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
src/net.h:380: warning: invalid access to non-static data member ‘CMessageHeader::nChecksum’ of NULL object
src/net.h:380: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
src/net.h:381: warning: invalid access to non-static data member ‘CMessageHeader::nChecksum’ of NULL object
src/net.h:381: warning: (perhaps the ‘offsetof’ macro was used incorrectly)

Or, put better by clang++:
src/net.h:377:46: warning: offset of on non-POD type 'CMessageHeader' [-Winvalid-offsetof]

@gavinandresen
Copy link
Contributor

ACK

jgarzik pushed a commit that referenced this pull request Jul 4, 2012
Fix remaining compile warnings.
@jgarzik jgarzik merged commit fe70b09 into bitcoin:master Jul 4, 2012
nifgraup pushed a commit to nifgraup/auroracoin-project that referenced this pull request Mar 30, 2014
suprnurd pushed a commit to chaincoin-legacy/chaincoin that referenced this pull request Dec 5, 2017
In the case of (for example) an already-running bitcoind, the shutdown sequence
begins before CConnman has been created, leading to a null-pointer dereference
when g_connman->Stop() is called.

Instead, Just let the CConnman dtor take care of stopping.
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants