Avoid raising an internal error

* src/qemu_conf.c: when connecting an interface if it reference
  an undefined network, then we used to raise an internal error.
This commit is contained in:
Paolo Bonzini 2009-07-07 16:54:55 +02:00 committed by Daniel Veillard
parent f093e7ad6b
commit b0e48bfdfe

View File

@ -716,9 +716,6 @@ qemudNetworkIfaceConnect(virConnectPtr conn,
virNetworkPtr network = virNetworkLookupByName(conn,
net->data.network.name);
if (!network) {
qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
_("Network '%s' not found"),
net->data.network.name);
goto error;
}
brname = virNetworkGetBridgeName(network);