qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5840] Don't try to select on an invalid VNC socket when init fails.
@ 2008-12-01  1:48 Andrzej Zaborowski
  0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-12-01  1:48 UTC (permalink / raw)
  To: qemu-devel

Revision: 5840
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5840
Author:   balrog
Date:     2008-12-01 01:48:36 +0000 (Mon, 01 Dec 2008)

Log Message:
-----------
Don't try to select on an invalid VNC socket when init fails.

Otherwise we get a segfault.

Modified Paths:
--------------
    trunk/vnc.c

Modified: trunk/vnc.c
===================================================================
--- trunk/vnc.c	2008-11-30 19:12:49 UTC (rev 5839)
+++ trunk/vnc.c	2008-12-01 01:48:36 UTC (rev 5840)
@@ -2419,6 +2419,7 @@
         }
         if (-1 == vs->lsock) {
             free(dpy);
+            return -1;
         } else {
             free(vs->display);
             vs->display = dpy;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-01  1:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01  1:48 [Qemu-devel] [5840] Don't try to select on an invalid VNC socket when init fails Andrzej Zaborowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).