Skip to content

Commit 8d2c643

Browse files
authored
Merge pull request #3060 from alex-mikheev/topic/mpi_unpack_fix_v2.x
v2.x: ompi: fixes crash in mpi_unpack
2 parents 2972f79 + 24aab62 commit 8d2c643

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ompi/mpi/c/unpack.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,5 @@ int MPI_Unpack(const void *inbuf, int insize, int *position,
105105
rc = (1 == rc) ? OMPI_SUCCESS : OMPI_ERROR;
106106
}
107107

108-
OMPI_ERRHANDLER_RETURN((rc == 1) ? OMPI_SUCCESS : OMPI_ERROR,
109-
comm, MPI_ERR_UNKNOWN, FUNC_NAME);
108+
OMPI_ERRHANDLER_RETURN(rc, comm, MPI_ERR_UNKNOWN, FUNC_NAME);
110109
}

0 commit comments

Comments
 (0)