mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
Merge pull request #12558 from Adirl/fix_bad_len_msg
msg/async/rdma: fix bad message that went to the user Reviewed-by: Haomai Wang <haomai@xsky.com>
This commit is contained in:
commit
e293d40e6a
@ -343,8 +343,8 @@ int Infiniband::recv_msg(CephContext *cct, int sd, IBSYNMsg& im)
|
||||
} else if (r == 0) { // valid disconnect message of length 0
|
||||
ldout(cct, 10) << __func__ << " got disconnect message " << dendl;
|
||||
} else if ((size_t)r != sizeof(msg)) { // invalid message
|
||||
ldout(cct, 1) << __func__ << " got bad length (" << r << "): " << cpp_strerror(errno) << dendl;
|
||||
r = -EINVAL;
|
||||
lderr(cct) << __func__ << " got bad length (" << r << "): " << cpp_strerror(errno) << dendl;
|
||||
} else { // valid message
|
||||
sscanf(msg, "%x:%x:%x:%x:%s", &(im.lid), &(im.qpn), &(im.psn), &(im.peer_qpn),gid);
|
||||
wire_gid_to_gid(gid, &(im.gid));
|
||||
|
Loading…
Reference in New Issue
Block a user