• M
    virStream*All: Call virStreamAbort() more frequently · 6f8aa8e8
    Michal Privoznik 提交于
    Our documentation to the virStreamRecvAll, virStreamSendAll,
    virStreamSparseRecvAll, and virStreamSparseSendAll functions
    indicates that if these functions fail, then virStreamAbort is
    called. But that is not necessarily true. For instance all of
    these functions allocate a buffer to work with. If the allocation
    fails, no virStreamAbort() is called despite -1 being returned.
    It's the same story with argument sanity checks and a lot of
    other checks.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
    6f8aa8e8
libvirt-stream.c 32.0 KB