* [Qemu-devel] [6010] vnc: Fix crash on 'info vnc' after 'change vnc none'
@ 2008-12-13 18:57 Aurelien Jarno
0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2008-12-13 18:57 UTC (permalink / raw)
To: qemu-devel
Revision: 6010
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6010
Author: aurel32
Date: 2008-12-13 18:57:12 +0000 (Sat, 13 Dec 2008)
Log Message:
-----------
vnc: Fix crash on 'info vnc' after 'change vnc none'
vnc_state->display is set to NULL after "change vnc none" but vnc_state itself
is still valid.
(James Ko)
Modified Paths:
--------------
trunk/vnc.c
Modified: trunk/vnc.c
===================================================================
--- trunk/vnc.c 2008-12-13 15:51:14 UTC (rev 6009)
+++ trunk/vnc.c 2008-12-13 18:57:12 UTC (rev 6010)
@@ -183,7 +183,7 @@
void do_info_vnc(void)
{
- if (vnc_state == NULL)
+ if (vnc_state == NULL || vnc_state->display == NULL)
term_printf("VNC server disabled\n");
else {
term_printf("VNC server active on: ");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-13 18:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-13 18:57 [Qemu-devel] [6010] vnc: Fix crash on 'info vnc' after 'change vnc none' Aurelien Jarno
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).