1
1

Fix bug in db/pmi when a stored byte object has a NULL pointer.

cmr=v1.7.3:reviewer=samuel

This commit was SVN r29215.
Этот коммит содержится в:
Nathan Hjelm 2013-09-20 15:38:36 +00:00
родитель 758cd25fff
Коммит bc31773523

Просмотреть файл

@ -357,7 +357,8 @@ static bool cache_keys_locally (const opal_identifier_t *uid, const char *key)
/* cache value locally so we don't have to look it up via pmi again */
if (OPAL_BYTE_OBJECT == stored_type) {
opal_byte_object_t bo = {.bytes = (unsigned char *) tmp3, .size = size};
opal_byte_object_t bo = {.bytes = (unsigned char *) (size == 0xffff) ? NULL : tmp3,
.size = (size == 0xffff) ? 0 : size};
opal_db.store (uid, OPAL_DB_INTERNAL, tmp_val + offset, &bo, stored_type);
} else if (size < 0xffff) {