]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
network: bridge: Fix IsActive, IsPersistent
authorCole Robinson <crobinso@redhat.com>
Tue, 16 Feb 2010 18:09:31 +0000 (13:09 -0500)
committerCole Robinson <crobinso@redhat.com>
Thu, 18 Feb 2010 14:23:05 +0000 (09:23 -0500)
We were accessing the wrong private data structure, which would
cause a segfault.

src/network/bridge_driver.c

index 8cef7146604cd5c10266ef68d9c98a279756289a..44537074c2fe676d4d1bcc3e85975d3d41bf9050 100644 (file)
@@ -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;