mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
robustify sexpr parser for NICs
This commit is contained in:
@@ -1759,7 +1759,8 @@ xenDaemonParseSxprNets(virConnectPtr conn,
|
||||
if (VIR_ALLOC(net) < 0)
|
||||
goto no_memory;
|
||||
|
||||
if (tmp != NULL || (STREQ(tmp2, DEFAULT_VIF_SCRIPT))) {
|
||||
if (tmp != NULL ||
|
||||
(tmp2 != NULL && STREQ(tmp2, DEFAULT_VIF_SCRIPT))) {
|
||||
net->type = VIR_DOMAIN_NET_TYPE_BRIDGE;
|
||||
/* XXX virtual network reverse resolve */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user