diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-19 15:10:17 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-06-27 12:31:15 +0200 |
commit | 333e7599a0d723801235f675719008ce43db93e3 (patch) | |
tree | a903001e77096edafb72b52edb8a53c80eec365e /net/hub.c | |
parent | 4329d049d5b8d4af71c6b399d64a6d1b98856318 (diff) | |
download | qemu-333e7599a0d723801235f675719008ce43db93e3.zip qemu-333e7599a0d723801235f675719008ce43db93e3.tar.gz qemu-333e7599a0d723801235f675719008ce43db93e3.tar.bz2 |
ui: return NULL when getting cursor without a console
VNC may try to get the current cursor even when there are no consoles
and crashes. Simple reproducer is qemu with -nodefaults.
Fixes: (again)
https://gitlab.com/qemu-project/qemu/-/issues/1548
Fixes: commit 385ac97f8 ("ui: keep current cursor with QemuConsole")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230428154807.2143652-1-marcandre.lureau@redhat.com>
Diffstat (limited to 'net/hub.c')
0 files changed, 0 insertions, 0 deletions