]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Resolve possible NULL dereference
authorJohn Ferlan <jferlan@redhat.com>
Tue, 20 Aug 2013 17:20:56 +0000 (13:20 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 20 Aug 2013 17:20:56 +0000 (13:20 -0400)
commit6aea4ebcd03f926ee7de6ca3671a5435b56d8ff2
tree9025d4f366b3ef1b2f997b6aac34dda26520f0df
parent95577af442e503bb209808b04b6482c895c9f561
libxl: Resolve possible NULL dereference

If we reached cleanup: prior to allocating cpus, it was possible that
'nr_nodes' had a value, but cpus was NULL leading to a possible NULL
deref. Add a 'cpus' as an end condition to for loop
src/libxl/libxl_conf.c