]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rbd: Set r variable so it can be returned should an error occur
authorWido den Hollander <wido@widodh.nl>
Fri, 15 Jan 2016 12:52:16 +0000 (13:52 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 18 Jan 2016 13:06:24 +0000 (14:06 +0100)
commita5a383adc17f708204fdaeb3dead2a4f3cebf4fd
tree21d033611799283d9f8d82bf9ec41560327fc2c2
parent7f866e54df59489b45e6635195ac8fff14e6fe8b
rbd: Set r variable so it can be returned should an error occur

This was reported in bug #1298024 where r would be filled with the
return code of rbd_open().

Should rbd_snap_unprotect() fail for any reason the virReportSystemError
call would return 'Success' since rbd_open() succeeded.

https://bugzilla.redhat.com/show_bug.cgi?id=1298024
Signed-off-by: Wido den Hollander <wido@widodh.nl>
src/storage/storage_backend_rbd.c