Skip to content

Commit 3d4285b

Browse files
committed
oob/tcp: silence valgrind warning
fully initialize allocated memory to keep valgrind happy Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent ad7f3f9 commit 3d4285b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

orte/mca/oob/tcp/oob_tcp_connection.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ static int tcp_peer_send_connect_ack(mca_oob_tcp_peer_t* peer)
386386
hdr.dst = peer->name;
387387
hdr.type = MCA_OOB_TCP_IDENT;
388388
hdr.tag = 0;
389+
hdr.seq_num = 0;
390+
memset(hdr.routed, 0, ORTE_MAX_RTD_SIZE+1);
389391

390392
/* get our security credential*/
391393
if (OPAL_SUCCESS != (rc = opal_sec.get_my_credential(peer->auth_method,

0 commit comments

Comments
 (0)