]> git.proxmox.com Git - qemu.git/commitdiff
Fix the inconsistency in x509-dh-key-file parameter
authorLei Li <lilei@linux.vnet.ibm.com>
Mon, 19 Nov 2012 09:15:08 +0000 (17:15 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 21 Nov 2012 13:46:11 +0000 (14:46 +0100)
Commit c448e8552b0f6135dabddf944a7110f929c08320 (spice: tls
support) added options to the -spice command line. But there
is an inconsistency between the declaration of the option
'x509-dh-key-file' to -spice command line and its parameter
parsing 'x509-dh-file' in function qemu_spice_init.

https://bugs.launchpad.net/qemu/+bug/1035042

Reported-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-core.c

index 51473650c087300ac3c4b7ab443988e5cdc13c40..261c6f2c11c996d50ebd3dda3a05682618b0a45d 100644 (file)
@@ -610,7 +610,7 @@ void qemu_spice_init(void)
         }
 
         x509_key_password = qemu_opt_get(opts, "x509-key-password");
-        x509_dh_file = qemu_opt_get(opts, "x509-dh-file");
+        x509_dh_file = qemu_opt_get(opts, "x509-dh-key-file");
         tls_ciphers = qemu_opt_get(opts, "tls-ciphers");
     }