HomeClusterLabs Projects

Fix: libcrmcommon: pcmk_nvpair_t should handle NULL values

Description

Fix: libcrmcommon: pcmk_nvpair_t should handle NULL values

Detected by static analysis; if pcmk_prepend_nvpair() were given a NULL value,
pcmk__new_nvpair() would try to strdup() it. Now, name is asserted to be
non-NULL, and NULL values are set directly.

Details

Provenance
kgaillotAuthored on Mar 21 2019, 10:20 AM
Parents
rP2c747af159ff: Build: tools: crmadmin and stonith_admin don't need cluster libraries
Branches
Unknown
Tags
Unknown

Event Timeline