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.
This commit is contained in:
Jim Meyering 2009-01-27 12:26:53 +00:00
parent b4f62abbf1
commit f03d3439cd
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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> Tue Jan 27 10:48:12 IST 2009 Mark McLoughlin <markmc@redhat.com>
kvm/virtio: Set IFF_VNET_HDR when setting up tap fds kvm/virtio: Set IFF_VNET_HDR when setting up tap fds

View File

@ -1059,7 +1059,7 @@ void virReportSystemErrorFull(virConnectPtr conn,
} }
} }
if (!msgDetailBuf) if (!msgDetail)
msgDetail = errnoDetail; msgDetail = errnoDetail;
virRaiseError(conn, NULL, NULL, domcode, VIR_ERR_SYSTEM_ERROR, VIR_ERR_ERROR, virRaiseError(conn, NULL, NULL, domcode, VIR_ERR_SYSTEM_ERROR, VIR_ERR_ERROR,