mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 14:05:18 +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)
|
static int networkIsActive(virNetworkPtr net)
|
||||||
{
|
{
|
||||||
struct network_driver *driver = net->conn->privateData;
|
struct network_driver *driver = net->conn->networkPrivateData;
|
||||||
virNetworkObjPtr obj;
|
virNetworkObjPtr obj;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
@ -1209,7 +1209,7 @@ cleanup:
|
|||||||
|
|
||||||
static int networkIsPersistent(virNetworkPtr net)
|
static int networkIsPersistent(virNetworkPtr net)
|
||||||
{
|
{
|
||||||
struct network_driver *driver = net->conn->privateData;
|
struct network_driver *driver = net->conn->networkPrivateData;
|
||||||
virNetworkObjPtr obj;
|
virNetworkObjPtr obj;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user