aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-06-16 14:19:48 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 15:18:36 -0500
commit198a0039c5fca224a77e9761e2350dd9cc102ad0 (patch)
treed7ec043e791602bd3a065db190bf127f8ecfe8be /block
parent11a1feb6552e3a4709e454faea5e3be5ca8d9e6a (diff)
vnc: rework VncState release workflow.
Split socket closing and releasing of VncState into two steps. First close the socket and set the variable to -1 to indicate shutdown in progress. Do the actual release in a few places where we can be sure it doesn't cause trouble in form of use-after-free. Add some checks for a valid socket handle to make sure we don't try to use the closed socket. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions