[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 2/3] network: bridge: Fix IsActive, IsPersistent



We were accessing the wrong private data structure, which would
cause a segfault.

Signed-off-by: Cole Robinson <crobinso redhat com>
---
 src/network/bridge_driver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index 8cef714..4453707 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -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;
 
-- 
1.6.5.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]