]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemudDomainSetVcpus: avoid NULL-deref
authorJim Meyering <meyering@redhat.com>
Fri, 14 May 2010 10:38:43 +0000 (12:38 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 15 May 2010 07:02:54 +0000 (09:02 +0200)
commitb48fb801dd33757b8b489f3adff8113b2a28cf9a
tree5eb76cf29c05ac2e0a8425ae4e1984bfc693d3b9
parent39b3845fd7d352e17c489a2c300abd900cd11b71
qemudDomainSetVcpus: avoid NULL-deref

* src/qemu/qemu_driver.c (qemudDomainSetVcpus): Avoid NULL-deref
upon unknown UUID.  Call qemuDomainObjBeginJob(vm) only after
ensuring that vm != NULL, not before.  This potential NULL-deref
was introduced by commit 2c555d87b0041e0d1ec4742386d2161d1b2f0600.
src/qemu/qemu_driver.c