提交 f03d3439 编写于 作者: J Jim Meyering

virterror.c: don't read beyond end of buffer upon OOM

* src/virterror.c (virReportSystemErrorFull): Fix typo in
my previous change.  Patch by Daniel P. Berrange.
上级 b4f62abb
Tue Jan 27 13:25:16 +0100 2009 Jim Meyering <meyering@redhat.com>
virterror.c: don't read beyond end of buffer upon OOM
* src/virterror.c (virReportSystemErrorFull): Fix typo in
my previous change. Patch by Daniel P. Berrange.
Tue Jan 27 10:48:12 IST 2009 Mark McLoughlin <markmc@redhat.com>
kvm/virtio: Set IFF_VNET_HDR when setting up tap fds
......
......@@ -1059,7 +1059,7 @@ void virReportSystemErrorFull(virConnectPtr conn,
}
}
if (!msgDetailBuf)
if (!msgDetail)
msgDetail = errnoDetail;
virRaiseError(conn, NULL, NULL, domcode, VIR_ERR_SYSTEM_ERROR, VIR_ERR_ERROR,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册