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
This commit is contained in:
parent
137519ce2e
commit
d0513623ae
1 changed files with 1 additions and 0 deletions
1
vnc.c
1
vnc.c
|
|
@ -2419,6 +2419,7 @@ int vnc_display_open(DisplayState *ds, const char *display)
|
|||
}
|
||||
if (-1 == vs->lsock) {
|
||||
free(dpy);
|
||||
return -1;
|
||||
} else {
|
||||
free(vs->display);
|
||||
vs->display = dpy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue