mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-04 00:58:38 +03: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>
|
||||
|
||||
* src/virsh.c: Merge xml building for virsh pool-*-as
|
||||
|
@ -544,12 +544,13 @@ storagePoolDefine(virConnectPtr conn,
|
||||
|
||||
if (!(pool = virStoragePoolObjAssignDef(conn, &driver->pools, def)))
|
||||
goto cleanup;
|
||||
def = NULL;
|
||||
|
||||
if (virStoragePoolObjSaveDef(conn, driver, pool, def) < 0) {
|
||||
virStoragePoolObjRemove(&driver->pools, pool);
|
||||
def = NULL;
|
||||
goto cleanup;
|
||||
}
|
||||
def = NULL;
|
||||
|
||||
ret = virGetStoragePool(conn, pool->def->name, pool->def->uuid);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user