Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

pmi: correctly handle NULL OPAL_BYTE_OBJECT object #42

Merged
merged 1 commit into from
Oct 22, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions opal/mca/db/pmi/db_pmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2014 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -361,6 +363,7 @@ static void cache_keys_locally(const opal_identifier_t *uid)
if (size == 0xffff) {
bo.bytes = NULL;
bo.size = 0;
size = 0;
} else {
bo.bytes = (uint8_t*)tmp3;
bo.size = size;
Expand Down