]> git.proxmox.com Git - mirror_qemu.git/commit
migration/qmp: Fix crash on setting tls-authz with null
authorPeter Xu <peterx@redhat.com>
Tue, 5 Sep 2023 16:23:32 +0000 (12:23 -0400)
committerJuan Quintela <quintela@redhat.com>
Wed, 11 Oct 2023 09:17:02 +0000 (11:17 +0200)
commit86dec715a7339fc61c3bdb9715993b277b2089db
tree7699c892aa53e899d93ba39d035eda808d5ccbcd
parent0ad0d9dcd16f2ea816a413008ac5191ebef45c95
migration/qmp: Fix crash on setting tls-authz with null

QEMU will crash if anyone tries to set tls-authz (which is a type
StrOrNull) with 'null' value.  Fix it in the easy way by converting it to
qstring just like the other two tls parameters.

Cc: qemu-stable@nongnu.org # v4.0+
Fixes: d2f1d29b95 ("migration: add support for a "tls-authz" migration parameter")
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20230905162335.235619-2-peterx@redhat.com>
migration/options.c