From: Jiri Denemark Date: Mon, 14 Feb 2011 10:49:28 +0000 (+0100) Subject: conf: Fix XML generation for smartcards X-Git-Tag: v0.8.8~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7bec64913d47bab458631f4a186c7f5605ae660;p=thirdparty%2Flibvirt.git conf: Fix XML generation for smartcards When formatting XML for smartcard device with mode=host, libvirt generates invalid XML if the device has address info associated: --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 59adf36979..f2bb3aa20a 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -7058,6 +7058,7 @@ virDomainSmartcardDefFormat(virBufferPtr buf, virBufferAddLit(buf, "/>\n"); return 0; } + virBufferAddLit(buf, ">\n"); break; case VIR_DOMAIN_SMARTCARD_TYPE_HOST_CERTIFICATES: