mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +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++) {
|
||||
netDef = vmDef->nets[i];
|
||||
if (STREQ(netDef->ifname_guest_actual, devName))
|
||||
if (STREQ_NULLABLE(netDef->ifname_guest_actual, devName))
|
||||
return netDef;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user