[libvirt] [PATCH] Fix release of virNetMessagePtr instances in streams processing

Eric Blake eblake at redhat.com
Thu Jun 30 16:17:39 UTC 2011


On 06/30/2011 10:09 AM, Daniel P. Berrange wrote:
> If a message packet for a invalid stream is received it is just
> free'd. This is not good because it doesn't let the client RPC
> request counter decrement. If a stream is shutdown with pending
> packets the message also isn't released properly because of an
> incorrect header type
> 
> * daemon/stream.c: Fix message header type
> * src/rpc/virnetserverprogram.c: Send dummy reply instead of
>   free'ing ignored stream message
> ---
>  daemon/stream.c               |    1 +
>  src/rpc/virnetserverprogram.c |    9 ++++++++-
>  2 files changed, 9 insertions(+), 1 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110630/ed90e294/attachment-0001.sig>


More information about the libvir-list mailing list