Skip to content

Commit 7508c6f

Browse files
committed
pmix: correctly handle NULL OPAL_BYTE_OBJECT object
1 parent b4f569b commit 7508c6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opal/mca/pmix/base/pmix_base_fns.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ int opal_pmix_base_cache_keys_locally(const opal_identifier_t* id, const char* k
358358
if (size == 0xffff) {
359359
kv->data.bo.bytes = NULL;
360360
kv->data.bo.size = 0;
361+
size = 0;
361362
} else {
362363
kv->data.bo.bytes = malloc(size);
363364
memcpy(kv->data.bo.bytes, tmp3, size);

0 commit comments

Comments
 (0)