• M
    qemu: Don't crash in qemuDomainOpenChannel() · b3ea0a8f
    Martin Kletzander 提交于
    The problem here was that when opening a channel, we were checking
    whether the channel given is alias (can't be NULL for running domain) or
    it's name, which can be NULL (for example with spicevmc).  In case of
    such domain qemuDomainOpenChannel() made the daemon crash.
    STREQ_NULLABLE() is safe to use since the code in question is wrapped in
    "if (name)" and is more readable, so use that instead of checking for
    non-NULL "vm->def->channels[i]->target.name".
    Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
    b3ea0a8f
qemu_driver.c 623.3 KB