]> xenbits.xensource.com Git - libvirt.git/commit
conf: fix formatting of udp chardev attributes
authorJán Tomko <jtomko@redhat.com>
Tue, 26 Sep 2017 11:30:10 +0000 (13:30 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 26 Sep 2017 11:36:51 +0000 (13:36 +0200)
commitfcd5c61cd4ea3d1a0a14260e2b3443b0292b19cb
tree9cb8ef9018d1944b3c43f9851929afc14dbb5019
parent93575f345116fe1413f6fe3109227b8be2f416da
conf: fix formatting of udp chardev attributes

It is possible (although possibly not very useful) to leave out
the service attribute when using <source mode='bind'/>

Fix the formatter bug introduced by commit 4a0da34 and format
the host when its present (checked for non-NULL inside
virBufferEscapeString) instead of basing it on the presence
of the service attribute.

https://bugzilla.redhat.com/show_bug.cgi?id=1455825
src/conf/domain_conf.c
tests/genericxml2xmloutdata/generic-chardev-udp.xml