]> 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>
Thu, 1 Aug 2013 15:13:58 +0000 (17:13 +0200)
commitc636c41af71f11d5ca52cb615bb449e796e39bab
treee0845ecc92b4ff627802e30e8129cf1763b04cbf
parent146d12c6ccf3b30b0423ff9f96be75ca67561e92
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>
(cherry picked from commit d58c8478443d49c6e702bbb2c56a567ef23f036f)
src/storage/storage_backend_rbd.c