]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_conf: fix graphics parsing
authorPavel Hrdina <phrdina@redhat.com>
Mon, 11 Apr 2016 11:05:42 +0000 (13:05 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 11 Apr 2016 11:50:55 +0000 (13:50 +0200)
commit1d9d0c93972f359593545d620e2c552684121a09
treebdeca09dc4da9c42c966b200d706b755247df7cf
parentcdced0128a45fb44c687325376311dabb1116324
domain_conf: fix graphics parsing

Commit dc98a5bc refactored the code a lot and forget about checking if
listen attribute is specified.  This ensures that listen attribute and
first listen element are compared only if both exist.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-no-listen-attr.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-no-listen-attr.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-vnc-no-listen-attr.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c