提交 bc68ae80 编写于 作者: J John Levon

robustify sexpr parser for NICs

上级 3909c7d3
Thu Feb 5 16:53:37 GMT 2009 John Levon <john.levon@sun.com>
* src/xend_internal.c: robustify sexpr parser for NICs
Thu Feb 5 17:03:35 +0100 2009 Jim Meyering <meyering@redhat.com>
syntax-check: enable prohibit_nonreentrant
......
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册