mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
lxc: Don't crash on NULL ifname_guest_actual
Reported and patch provided by Bastian Blank at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769600
This commit is contained in:
parent
97fac17c77
commit
906a116586
@ -472,7 +472,7 @@ lxcContainerGetNetDef(virDomainDefPtr vmDef, const char *devName)
|
|||||||
|
|
||||||
for (i = 0; i < vmDef->nnets; i++) {
|
for (i = 0; i < vmDef->nnets; i++) {
|
||||||
netDef = vmDef->nets[i];
|
netDef = vmDef->nets[i];
|
||||||
if (STREQ(netDef->ifname_guest_actual, devName))
|
if (STREQ_NULLABLE(netDef->ifname_guest_actual, devName))
|
||||||
return netDef;
|
return netDef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user