Fix crash when multiple event callbacks were registered
authorJán Tomko <jtomko@redhat.com>
Tue, 2 Jul 2013 13:17:09 +0000 (15:17 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 10 Jul 2013 11:03:26 +0000 (13:03 +0200)
commit0b0b662059c8c87354d8417216baec1af3abc07c
tree13970355691e2a166549258540fa9065f0b4c3cf
parentb1eaa535db59c721b0d4e5eda254ea959842b8d7
Fix crash when multiple event callbacks were registered

CVE-2013-2230

Don't overwrite the callback ID returned by
virDomainEventStateRegisterID in ret by 0.

Introduced by abf75aea.
(cherry picked from commit f38c8185f97720ecae7ef2291fbaa5d6b0209e17)
src/qemu/qemu_driver.c