+Thu Dec 11 09:55:23 EST 2008 Cole Robinson <crobinso@redhat.com>
+
+ * src/netork_driver.c src/qemu_conf.c: Fix segfault if virtual
+ network does not have a bridge name.
+
Thu Dec 11 12:39:20 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/domain_conf.c src/domain_conf.h src/qemu_conf.c
goto cleanup;
}
+ if (!(network->def->bridge)) {
+ networkReportError(net->conn, NULL, net, VIR_ERR_INTERNAL_ERROR,
+ _("network '%s' does not have a bridge name."),
+ network->def->name);
+ goto cleanup;
+ }
+
bridge = strdup(network->def->bridge);
if (!bridge)
networkReportError(net->conn, NULL, net, VIR_ERR_NO_MEMORY,
virNetworkFree(network);
if (brname == NULL) {
- qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
- _("Network '%s' is not active"),
- net->data.network.name);
goto error;
}
} else if (net->type == VIR_DOMAIN_NET_TYPE_BRIDGE) {