]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async: never fill out port in myaddr if we didn't bind
authorSage Weil <sage@redhat.com>
Fri, 25 Jan 2019 20:12:27 +0000 (14:12 -0600)
committerSage Weil <sage@redhat.com>
Fri, 25 Jan 2019 20:12:59 +0000 (14:12 -0600)
commit5acf7ec1ffc65db6a2e4a17cfa738e3d98dbb6a3
tree36d35a146305224613adfda19254b34838ec0cf5
parentea517edd2de31fefa04687b5edcf318d512e4658
msg/async: never fill out port in myaddr if we didn't bind

If we are a client and didn't bind, then we should not fill in the port for our
address.  The one the peer sent us is just the random port our outgoing connection
happened to land on!

Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/AsyncMessenger.cc