mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +00:00
virDomainNetDefParseXML: Fix typo
In 9cb891141c
we've introduced some logic to clearing suggested
macvtap/macvlan ifnames. The logic consists of comparing ifname
string with strings that libvirt would generate. However, due to
a typo only VIR_NET_GENERATED_MACVTAP_PREFIX was compared. Twice.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c44482eb4f
commit
836f85d13f
@ -10074,7 +10074,7 @@ virDomainNetDefParseXML(virDomainXMLOptionPtr xmlopt,
|
||||
if (ifname &&
|
||||
flags & VIR_DOMAIN_DEF_PARSE_INACTIVE &&
|
||||
(STRPREFIX(ifname, VIR_NET_GENERATED_MACVTAP_PREFIX) ||
|
||||
STRPREFIX(ifname, VIR_NET_GENERATED_MACVTAP_PREFIX))) {
|
||||
STRPREFIX(ifname, VIR_NET_GENERATED_MACVLAN_PREFIX))) {
|
||||
VIR_FREE(ifname);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user