This commit relates to fix broken compilation commit#
b8f91aa
Assumption: If "out" is NULL then there is no communication and it is
safe to assert.
issue:985021
Change-Id: I76c5a1c875a634a74b8aa962294c6c834f0675d9
Signed-off-by: Sarit Zubakov <saritz@mellanox.com>
::close(sd);
return -errno;
}
+
+ assert(NULL != out); //out should not be NULL in accept connection
+
+ out->set_sockaddr((sockaddr*)&ss);
net.set_priority(sd, opt.priority, out->get_family());
RDMAConnectedSocketImpl* server;
ldout(cct, 20) << __func__ << " accepted a new QP, tcp_fd: " << sd << dendl;
std::unique_ptr<RDMAConnectedSocketImpl> csi(server);
*sock = ConnectedSocket(std::move(csi));
- if (out)
- out->set_sockaddr((sockaddr*)&ss);
return 0;
}