conf: avoid null deref during storage probe v1.2.4-rc2
authorEric Blake <eblake@redhat.com>
Tue, 29 Apr 2014 03:26:10 +0000 (21:26 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 29 Apr 2014 14:13:29 +0000 (08:13 -0600)
commitc9679edca9cc876d63f12c80d21f57aceacc97bd
tree4b6881858c4005fe5b66562586d328e836f021dd
parent0e285a588a6274d4199867bb397282ee21c0c255
conf: avoid null deref during storage probe

Commit 5c43e2e introduced a NULL deref if there is a failure
in virStorageFileGetMetadataInternal.

* src/util/virstoragefile.c (virStorageFileGetMetadataFromBuf):
Fix error handling.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/virstoragefile.c