Fix incorrect use of private data in remote driver

The remote driver is using the wrong privateData field in
a couple of functions. THis is harmless for stateful
drivers like QEMU/UML/LXC, but will crash with Xen

* src/remote/remote_driver.c: Fix use of privateData field
This commit is contained in:
Daniel P. Berrange 2010-07-22 05:34:21 -04:00
parent 6ea90b843e
commit 8d4f024221

View File

@ -4067,7 +4067,7 @@ remoteNetworkIsActive(virNetworkPtr network)
int rv = -1;
remote_network_is_active_args args;
remote_network_is_active_ret ret;
struct private_data *priv = network->conn->privateData;
struct private_data *priv = network->conn->networkPrivateData;
remoteDriverLock(priv);
@ -4091,7 +4091,7 @@ remoteNetworkIsPersistent(virNetworkPtr network)
int rv = -1;
remote_network_is_persistent_args args;
remote_network_is_persistent_ret ret;
struct private_data *priv = network->conn->privateData;
struct private_data *priv = network->conn->networkPrivateData;
remoteDriverLock(priv);
@ -4622,7 +4622,7 @@ remoteInterfaceIsActive(virInterfacePtr iface)
int rv = -1;
remote_interface_is_active_args args;
remote_interface_is_active_ret ret;
struct private_data *priv = iface->conn->privateData;
struct private_data *priv = iface->conn->interfacePrivateData;
remoteDriverLock(priv);
@ -5127,7 +5127,7 @@ remoteStoragePoolIsActive(virStoragePoolPtr pool)
int rv = -1;
remote_storage_pool_is_active_args args;
remote_storage_pool_is_active_ret ret;
struct private_data *priv = pool->conn->privateData;
struct private_data *priv = pool->conn->storagePrivateData;
remoteDriverLock(priv);
@ -5151,7 +5151,7 @@ remoteStoragePoolIsPersistent(virStoragePoolPtr pool)
int rv = -1;
remote_storage_pool_is_persistent_args args;
remote_storage_pool_is_persistent_ret ret;
struct private_data *priv = pool->conn->privateData;
struct private_data *priv = pool->conn->storagePrivateData;
remoteDriverLock(priv);