Skip to content

Commit 89f3418

Browse files
authored
Merge pull request #7459 from rhc54/topic/cid
Fix comm_spawn
2 parents 28776c5 + b35b0f7 commit 89f3418

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ompi/communicator/comm_cid.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -909,9 +909,8 @@ static int ompi_comm_allreduce_pmix_reduce_complete (ompi_comm_request_t *reques
909909
}
910910

911911
PMIX_PDATA_CONSTRUCT(&pdat);
912-
913-
info.value.type = OPAL_BYTE_OBJECT;
914-
pdat.value.type = OPAL_BYTE_OBJECT;
912+
PMIX_INFO_CONSTRUCT(&info);
913+
info.value.type = PMIX_BYTE_OBJECT;
915914

916915
opal_dss.unload(&sbuf, (void**)&info.value.data.bo.bytes, &rc);
917916
info.value.data.bo.size = rc;
@@ -959,6 +958,10 @@ static int ompi_comm_allreduce_pmix_reduce_complete (ompi_comm_request_t *reques
959958
OBJ_DESTRUCT(&pdat);
960959
return rc;
961960
}
961+
if (PMIX_BYTE_OBJECT != pdat.value.type) {
962+
OBJ_DESTRUCT(&pdat);
963+
return OPAL_ERR_TYPE_MISMATCH;
964+
}
962965

963966
OBJ_CONSTRUCT(&sbuf, opal_buffer_t);
964967
opal_dss.load(&sbuf, pdat.value.data.bo.bytes, pdat.value.data.bo.size);

0 commit comments

Comments
 (0)