« Previous | Next » 

Revision 198a0039

ID198a0039c5fca224a77e9761e2350dd9cc102ad0

Added by Gerd Hoffmann almost 15 years ago

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 <>
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences