Commit d0513623aee6bca7b6458a12fc652ac028f03753

Authored by balrog
1 parent 137519ce

Don't try to select on an invalid VNC socket when init fails.

Otherwise we get a segfault.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5840 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 0 deletions
... ... @@ -2419,6 +2419,7 @@ int vnc_display_open(DisplayState *ds, const char *display)
2419 2419 }
2420 2420 if (-1 == vs->lsock) {
2421 2421 free(dpy);
  2422 + return -1;
2422 2423 } else {
2423 2424 free(vs->display);
2424 2425 vs->display = dpy;
... ...