]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virStream*All: Preserve reported error
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 1 Jun 2017 06:40:10 +0000 (08:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 11 Jul 2017 06:59:04 +0000 (08:59 +0200)
commit5b62dacb700f2f8694700680261c4e64cf42d95f
treec574ab5f8fba96d4665b4ce6f88f4a5fbfc4d2f6
parent6f8aa8e8dabb4c1e91af605a2dbe78935323b956
virStream*All: Preserve reported error

If one these four functions fail (virStreamRecvAll,
virStreamSendAll, virStreamSparseRecvAll, virStreamSparseSendAll)
the stream is aborted by calling virStreamAbort(). This is  a
public API; therefore, the first thing it does is error reset. At
that point any error that caused us to abort stream in the first
place is gone.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/libvirt-stream.c