Commit 13412c9d2fce7c402e93a08177abdbc593208140
1 parent
f60d2728
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) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6010 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
vnc.c
... | ... | @@ -183,7 +183,7 @@ static VncState *vnc_state; /* needed for info vnc */ |
183 | 183 | |
184 | 184 | void do_info_vnc(void) |
185 | 185 | { |
186 | - if (vnc_state == NULL) | |
186 | + if (vnc_state == NULL || vnc_state->display == NULL) | |
187 | 187 | term_printf("VNC server disabled\n"); |
188 | 188 | else { |
189 | 189 | term_printf("VNC server active on: "); | ... | ... |