From e92e5ba12825b32ccc929a527077fb7019c87d1b Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Mon, 31 Aug 2015 15:33:49 +0200 Subject: [PATCH] domain-conf: escape string for socket attribute Commit d091518b tried to escape all strings in produced XML, but missed this one. Signed-off-by: Pavel Hrdina --- src/conf/domain_conf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 69225f47f9..f95190ff83 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -21118,9 +21118,7 @@ virDomainGraphicsDefFormat(virBufferPtr buf, switch (def->type) { case VIR_DOMAIN_GRAPHICS_TYPE_VNC: if (def->data.vnc.socket) { - if (def->data.vnc.socket) - virBufferAsprintf(buf, " socket='%s'", - def->data.vnc.socket); + virBufferEscapeString(buf, " socket='%s'", def->data.vnc.socket); } else { if (def->data.vnc.port && (!def->data.vnc.autoport || !(flags & VIR_DOMAIN_DEF_FORMAT_INACTIVE))) -- GitLab