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>
Mon, 8 Feb 2016 21:30:56 +0000 (22:30 +0100)
commit811bb7461e2a22f24904d58f0b02f860e12ffe5b
tree145d63919e3ecef6f45c69e281250c009b3eece0
parentfcf3d839b6acc518d634c112c7a3e837a5d0cef2
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