]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rbd: Do not free the secret if it is not set
authorWido den Hollander <wido@widodh.nl>
Tue, 16 Jul 2013 12:26:07 +0000 (14:26 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 16 Jul 2013 13:13:11 +0000 (15:13 +0200)
commitd58c8478443d49c6e702bbb2c56a567ef23f036f
treeafe4764c9f01248e019001865e6388cbb41e554f
parent57b65c58d0e935ce31a0d3ea3e820edc4ddc3d10
rbd: Do not free the secret if it is not set

Not all RBD (Ceph) storage pools have cephx authentication turned on,
so "secret" might not be initialized.

It could also be that the secret couldn't be located.

Only call virSecretFree() if "secret" is initialized earlier.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
src/storage/storage_backend_rbd.c