]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildCommandLine: Don't add tlsPort if none set
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 8 Mar 2012 13:27:14 +0000 (14:27 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 9 Mar 2012 07:49:10 +0000 (08:49 +0100)
commitee4907320f068baec15c7738d8c4103e3e939147
tree4d9eeeaa52f5b5c9f7620e96059171e6e184fac1
parent896e6ac4f8f61318b9633fe6233b42f8eb88bde4
qemuBuildCommandLine: Don't add tlsPort if none set

If user hasn't supplied any tlsPort we default to setting it
to zero in our internal structure. However, when building command
line we test it against -1 which is obviously wrong.
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args