]> xenbits.xensource.com Git - libvirt.git/commit
esx_util.c: avoid NULL deref for invalid inputs
authorJim Meyering <meyering@redhat.com>
Tue, 15 Dec 2009 18:08:49 +0000 (19:08 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 16 Dec 2009 12:39:15 +0000 (13:39 +0100)
commitfa479727ff42e26a4b1b9af1dab84df5737c2030
treeb529dd6304ecb942cab1c1de83eeb05be4becd42
parent576b2c7514330921fc60e0352db8da2372f2d3be
esx_util.c: avoid NULL deref for invalid inputs

* src/esx/esx_util.c (esxUtil_ParseDatastoreRelatedPath): Return
right away for invalid inputs, rather than using them (which would
dereference NULL pointers) in clean-up code.
src/esx/esx_util.c