提交 922f5e68 编写于 作者: C Cole Robinson

Fix storage driver null dereference.

上级 bd24695a
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册