From: Pavel Hrdina Date: Mon, 31 Aug 2015 13:33:49 +0000 (+0200) Subject: domain-conf: escape string for socket attribute X-Git-Tag: v1.2.20-rc1~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e92e5ba12825b32ccc929a527077fb7019c87d1b;p=thirdparty%2Flibvirt.git 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 --- 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)))