提交 c1aaa253 编写于 作者: J John Ferlan

conf: Check error from virXMLFormatElement call

Commit id 1bd5a08d added a call to virXMLFormatElement without
also checking the return status.

Found by Coverity.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
Reviewed-by: NKaterina Koukiou <kkoukiou@redhat.com>
上级 05c41f4f
...@@ -27522,7 +27522,8 @@ virDomainDefFormatInternal(virDomainDefPtr def, ...@@ -27522,7 +27522,8 @@ virDomainDefFormatInternal(virDomainDefPtr def,
unit, short_size); unit, short_size);
} }
virXMLFormatElement(buf, "smm", &attrBuf, &childBuf); if (virXMLFormatElement(buf, "smm", &attrBuf, &childBuf) < 0)
goto error;
} }
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册