]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Fix possible NULL dereference in virStorageVolTargetDefFormat
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 11 Jul 2014 16:13:34 +0000 (18:13 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 11 Jul 2014 23:00:46 +0000 (17:00 -0600)
commit270969c4ddee339cfd3b01805603e034fdc875d1
treed4b9ebc1cce5747cd46851742a54c8d752747ef6
parent9b1e4cd5034225c7f750b38968b576c966c51d75
conf: Fix possible NULL dereference in virStorageVolTargetDefFormat

Commit dae1568c6c6455091e8cd9bc2e90a22af3d3880c converted the perms
member of the virStorageVolTarget struct into a pointer to make it
optional. But virStorageVolTargetDefFormat did not check perms for
NULL before dereferencing it.
src/conf/storage_conf.c