mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
conf: error out on missing dhcp host attributes
In virNetworkDHCPHostDefParseXML an error is reported when partialOkay == true, and none of ip, mac, name were supplied. Add the missing goto and error out in this case.
This commit is contained in:
parent
719cd2182b
commit
b15b21f3a5
@ -746,6 +746,7 @@ virNetworkDHCPHostDefParseXML(const char *networkName,
|
|||||||
"must be specified for static host definition "
|
"must be specified for static host definition "
|
||||||
"in network '%s' "),
|
"in network '%s' "),
|
||||||
networkName);
|
networkName);
|
||||||
|
goto cleanup;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* normal usage - you need at least name (IPv6) or one of MAC
|
/* normal usage - you need at least name (IPv6) or one of MAC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user