mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
network: bridge: Fix IsActive, IsPersistent
We were accessing the wrong private data structure, which would cause a segfault.
This commit is contained in:
parent
bf6789d913
commit
6d4bd59cf8
@ -1188,7 +1188,7 @@ static int networkListDefinedNetworks(virConnectPtr conn, char **const names, in
|
||||
|
||||
static int networkIsActive(virNetworkPtr net)
|
||||
{
|
||||
struct network_driver *driver = net->conn->privateData;
|
||||
struct network_driver *driver = net->conn->networkPrivateData;
|
||||
virNetworkObjPtr obj;
|
||||
int ret = -1;
|
||||
|
||||
@ -1209,7 +1209,7 @@ cleanup:
|
||||
|
||||
static int networkIsPersistent(virNetworkPtr net)
|
||||
{
|
||||
struct network_driver *driver = net->conn->privateData;
|
||||
struct network_driver *driver = net->conn->networkPrivateData;
|
||||
virNetworkObjPtr obj;
|
||||
int ret = -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user