]> xenbits.xensource.com Git - libvirt.git/commit
esx: Fix dynamic deep copy
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 4 Aug 2012 17:56:17 +0000 (19:56 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 9 Aug 2012 20:31:47 +0000 (22:31 +0200)
commitc10cc254702816a00a8e7404b708996c853e00ed
treececa21e1b8bcce17f8b388073191bcdd13258323
parentb9dfbf5723d23f953e0a611a39e83ab2b5ae378b
esx: Fix dynamic deep copy

The static deep copy allocates storage for the copy. The dynamic
version injected the dynamic dispatch after the allocation. This
triggered the invalid argument check in the dynamically dispatched
deep copy call. The deep copy function expects its dest parameter
to be a pointer to a NULL-pointer. This expectation wasn't met due
to the dispatching deep copy doing the allocation before the call.

Fix this by dynamically dispatching to the correct type before the
allocation.
src/esx/esx_vi_types.c