mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-28 14:22:27 +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. (cherry picked from commit b15b21f3a52945644c7ccbbe1dd51b86d36ca777)
This commit is contained in:
parent
b7d12c5c50
commit
ea7de69315
@ -754,6 +754,7 @@ virNetworkDHCPHostDefParseXML(const char *networkName,
|
||||
"must be specified for static host definition "
|
||||
"in network '%s' "),
|
||||
networkName);
|
||||
goto cleanup;
|
||||
}
|
||||
} else {
|
||||
/* normal usage - you need at least name (IPv6) or one of MAC
|
||||
|
Loading…
x
Reference in New Issue
Block a user