rbd: always set out parameter in qemu_rbd_snap_list
authorJosh Durgin <josh.durgin@dreamhost.com>
Wed, 7 Dec 2011 01:05:10 +0000 (17:05 -0800)
committerJustin M. Forbes <jforbes@redhat.com>
Tue, 10 Jan 2012 19:37:11 +0000 (13:37 -0600)
commit076ae2881e498de1c083f3dd3ee2a945f5621038
treea94751357402271b08d38a8eaeecff0133b12ddc
parentaf4c4d995e414f52555e59ef6dfe0f17a82d52b0
rbd: always set out parameter in qemu_rbd_snap_list

The caller expects psn_tab to be NULL when there are no snapshots or
an error occurs. This results in calling g_free on an invalid address.

Reported-by: Oliver Francke <Oliver@filoo.de>
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/rbd.c