]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: fix peer address determination
authorSage Weil <sage@newdream.net>
Fri, 11 Apr 2008 21:32:32 +0000 (14:32 -0700)
committerSage Weil <sage@newdream.net>
Fri, 11 Apr 2008 21:32:32 +0000 (14:32 -0700)
src/msg/SimpleMessenger.cc

index f81de92b9ab58213fd069ca793d957a335aa6bc6..f371e9274913d74cff39ecaaa57b190c2b5ad8ef 100644 (file)
@@ -785,6 +785,7 @@ int Rank::Pipe::accept()
       state = STATE_CLOSED;
       return -1;
     }
+    peer_addr.ipaddr.sin_port = old_addr.ipaddr.sin_port;
     dout(2) << "accept peer says " << old_addr << ", socket says " << peer_addr << dendl;
   }