Don't serialize PeerPtr value in RPC connections
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 3 Feb 2016 23:10:08 +0000 (00:10 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 3 Feb 2016 23:17:25 +0000 (00:17 +0100)
commitbe23c0c48e37617eebe0be0eb2ea5c6246dc8170
treebff906f81a11f01d45d9c4aebaf4fba159ac7c7c
parentc878493af33f5d01e07360bebdbe06131ded5015
Don't serialize PeerPtr value in RPC connections

PeerPtr is used in RPC signatures for enabling receivers to send replies
to a particular peer rather than broadcast to all connected ones.
To enable this, the SignalProxy transparently replaces the bogus value
received over the network with the actual address of the local Peer
instance.

Because the actual value isn't needed on the wire, it should be
serialized as null. This also prevents the accidental use of a bogus
remote pointer address.
src/common/peer.cpp