Skip to content

Commit

Permalink
iwpmd: Zero-initialize the remote addr info
Browse files Browse the repository at this point in the history
[ Upstream commit 3fcf920 ]

The remote addr info can be padded with random bytes
if not initialized. The remote addr info is stored in the
iw_cm module, looked up and passed to applications later.

Fixes: eee8aef ("rdma-core/iwpmd: Add functionality to enable libiwpm to provide the remote connecting peer address information to its clients")
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
  • Loading branch information
tatyana-en authored and nmorey committed Oct 15, 2021
1 parent 155ff82 commit 944c375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iwpmd/iwarp_pm_server.c
Expand Up @@ -646,7 +646,7 @@ static int process_iwpm_wire_request(iwpm_msg_parms *msg_parms, int nl_sock,
iwpm_mapping_request iwpm_copy_req;
iwpm_send_msg *send_msg = NULL;
struct sockaddr_storage local_addr, mapped_loc_addr;
struct sockaddr_storage remote_addr, mapped_rem_addr;
struct sockaddr_storage remote_addr = {}, mapped_rem_addr = {};
__u16 nlmsg_type;
int not_mapped = 1;
int ret = 0;
Expand Down

0 comments on commit 944c375

Please sign in to comment.