mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
Fix storage driver null dereference.
This commit is contained in:
parent
bd24695a23
commit
922f5e6845
@ -1,3 +1,7 @@
|
|||||||
|
Mon Dec 22 11:33:16 EST 2008 Cole Robinson <crobinso@redhat.com>
|
||||||
|
|
||||||
|
* src/storage_driver.c: Fix storage driver null dereference.
|
||||||
|
|
||||||
Mon Dec 22 11:27:52 EST 2008 Cole Robinson <crobinso@redhat.com>
|
Mon Dec 22 11:27:52 EST 2008 Cole Robinson <crobinso@redhat.com>
|
||||||
|
|
||||||
* src/virsh.c: Merge xml building for virsh pool-*-as
|
* src/virsh.c: Merge xml building for virsh pool-*-as
|
||||||
|
@ -544,12 +544,13 @@ storagePoolDefine(virConnectPtr conn,
|
|||||||
|
|
||||||
if (!(pool = virStoragePoolObjAssignDef(conn, &driver->pools, def)))
|
if (!(pool = virStoragePoolObjAssignDef(conn, &driver->pools, def)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
def = NULL;
|
|
||||||
|
|
||||||
if (virStoragePoolObjSaveDef(conn, driver, pool, def) < 0) {
|
if (virStoragePoolObjSaveDef(conn, driver, pool, def) < 0) {
|
||||||
virStoragePoolObjRemove(&driver->pools, pool);
|
virStoragePoolObjRemove(&driver->pools, pool);
|
||||||
|
def = NULL;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
def = NULL;
|
||||||
|
|
||||||
ret = virGetStoragePool(conn, pool->def->name, pool->def->uuid);
|
ret = virGetStoragePool(conn, pool->def->name, pool->def->uuid);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user