提交 906a1165 编写于 作者: G Guido Günther 提交者: Cédric Bosdonnat

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
上级 97fac17c
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册