提交 6d4bd59c 编写于 作者: C Cole Robinson

network: bridge: Fix IsActive, IsPersistent

We were accessing the wrong private data structure, which would
cause a segfault.
上级 bf6789d9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册