]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix potential crash in libvirtd with active streams
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 8 Jul 2011 11:33:52 +0000 (12:33 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 8 Jul 2011 15:19:57 +0000 (16:19 +0100)
commit3e5d48ef33224a915bb2afd7933fbec3c2b232ba
tree078a2bfac8675b7ff41c8f6dfa08610378a913d6
parentc2ddd536145f36e400a93a1c77f9f0044bfdf068
Fix potential crash in libvirtd with active streams

If a client disconnects while it has a stream active, there is
a race condition which could see libvirtd crash. This is because
the client struct may be freed before the last stream event has
triggered. This is trivially solved by holding an extra reference
on the client for the stream callbak

* daemon/stream.c: Acquire reference on client when adding the
  stream callback
daemon/stream.c