mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
qemu: Escape commas for qemuBuildGraphicsVNCCommandLine
Add comma escaping for cfg->vncTLSx509certdir. Signed-off-by: Sukrit Bhatnagar <skrtbhtngr@gmail.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
10823b78bb
commit
785f9340f6
@ -7657,10 +7657,13 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg,
|
||||
|
||||
if (cfg->vncTLS) {
|
||||
virBufferAddLit(&opt, ",tls");
|
||||
if (cfg->vncTLSx509verify)
|
||||
virBufferAsprintf(&opt, ",x509verify=%s", cfg->vncTLSx509certdir);
|
||||
else
|
||||
virBufferAsprintf(&opt, ",x509=%s", cfg->vncTLSx509certdir);
|
||||
if (cfg->vncTLSx509verify) {
|
||||
virBufferAddLit(&opt, ",x509verify=");
|
||||
virQEMUBuildBufferEscapeComma(&opt, cfg->vncTLSx509certdir);
|
||||
} else {
|
||||
virBufferAddLit(&opt, ",x509=");
|
||||
virQEMUBuildBufferEscapeComma(&opt, cfg->vncTLSx509certdir);
|
||||
}
|
||||
}
|
||||
|
||||
if (cfg->vncSASL) {
|
||||
|
Loading…
Reference in New Issue
Block a user