]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpuCompare: Fix crash on unexpected CPU XML
authorJiri Denemark <jdenemar@redhat.com>
Mon, 12 Jul 2010 15:30:23 +0000 (17:30 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 12 Jul 2010 17:45:22 +0000 (19:45 +0200)
commitf5055f2310950633510dd808d1b67123e13d6f03
tree35188cb367377310211c17faa61b9ba513b3b545
parent517aba9fac9040c8c6b25112c9104d2e0f4c5e25
cpuCompare: Fix crash on unexpected CPU XML

When comparing a CPU without <model> element, such as

    <cpu>
        <topology sockets='1' cores='1' threads='1'/>
    </cpu>

libvirt would happily crash without warning.
src/cpu/cpu.c