Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jewel: msg/simple/Pipe: error decoding addr #12291

Merged
merged 1 commit into from Feb 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/msg/simple/Pipe.cc
Expand Up @@ -967,12 +967,17 @@ int Pipe::connect()
ldout(msgr->cct,2) << "connect couldn't read peer addrs, " << cpp_strerror(rc) << dendl;
goto fail;
}
{
try {
bufferlist::iterator p = addrbl.begin();
::decode(paddr, p);
::decode(peer_addr_for_me, p);
port = peer_addr_for_me.get_port();
}
catch (buffer::error& e) {
ldout(msgr->cct,2) << "connect couldn't decode peer addrs: " << e.what()
<< dendl;
goto fail;
}
port = peer_addr_for_me.get_port();

ldout(msgr->cct,20) << "connect read peer addr " << paddr << " on socket " << sd << dendl;
if (peer_addr != paddr) {
Expand Down