Message ID | 1359974470-17044-22-git-send-email-mjt@msgid.tls.msk.ru |
---|---|
State | New |
Headers | show |
diff --git a/ui/vnc.c b/ui/vnc.c index 8cec55f..a61e569 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -371,6 +371,10 @@ VncInfo *qmp_query_vnc(Error **errp) } } + if (vnc_display->lsock == -1) { + return info; + } + if (getsockname(vnc_display->lsock, (struct sockaddr *)&sa, &salen) == -1) { error_set(errp, QERR_UNDEFINED_ERROR);