diff options
author | Markus Armbruster <armbru@redhat.com> | 2021-09-09 10:12:18 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-09-27 10:57:21 +0200 |
commit | 6193344f9337f8b76cd44ce94a32c9900d907d35 (patch) | |
tree | 8c3d902d12d468824c54b8122e8899c06c13f7eb /memory_ldst.c.inc | |
parent | 72686c586dd655ef7b946a1295ab8cfbbbcae0ff (diff) |
hmp: Unbreak "change vnc"
HMP command "change vnc" can take the password as argument, or prompt
for it:
(qemu) change vnc password 123
(qemu) change vnc password
Password: ***
(qemu)
This regressed in commit cfb5387a1d "hmp: remove "change vnc TARGET"
command", v6.0.0.
(qemu) change vnc passwd 123
Password: ***
(qemu) change vnc passwd
(qemu)
The latter passes NULL to qmp_change_vnc_password(), which is a no-no.
Looks like it puts the display into "password required, but none set"
state.
The logic error is easy to miss in review, but testing should've
caught it.
Fix the obvious way.
Fixes: cfb5387a1de2acda23fb5c97d2378b9e7ddf8025
Cc: qemu-stable@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20210909081219.308065-2-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'memory_ldst.c.inc')
0 files changed, 0 insertions, 0 deletions