]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Fix core for cmdSecretGetValue
authorJohn Ferlan <jferlan@redhat.com>
Mon, 15 Aug 2016 11:53:45 +0000 (07:53 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 15 Aug 2016 11:53:45 +0000 (07:53 -0400)
commit18701e9d6213be5a622d7c797f3a899b689e26b2
treec1c1ccd1055f0f1c440a515db0e6ea76ea069b9a
parentef11e770da543c171f044bbd579e482febcd9b63
virsh: Fix core for cmdSecretGetValue

https://bugzilla.redhat.com/show_bug.cgi?id=1366611

When commit id 'cb2e3e50' reworked the cmdSecretGetValue call to use
VIR_DISPOSE_STRING for base64, it neglected to initialize the base64
value to NULL since the cleanup: label could be reached prior to the
base64 value being set or not.  This resulted in a core dump, adding
the initialization will avoid the issue.
tools/virsh-secret.c