Skip to content

Commit 729c54f

Browse files
committed
MPI_Unpack: fix error code when insize <= 0
this fixes a regression from f2e33c7 (cherry picked from commit 7b803ac)
1 parent 3f6f698 commit 729c54f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ompi/mpi/c/unpack.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ int MPI_Unpack(const void *inbuf, int insize, int *position,
9999
rc = opal_convertor_unpack( &local_convertor, &outvec, &iov_count, &size );
100100
*position += size;
101101
OBJ_DESTRUCT( &local_convertor );
102+
} else {
103+
rc = 1;
102104
}
103105

104106
/* All done. Note that the convertor returns 1 upon success, not

0 commit comments

Comments
 (0)