[libvirt] [PATCH] virsh: avoid null pointer dereference

Eric Blake eblake at redhat.com
Tue May 3 17:02:06 UTC 2011


On 05/03/2011 10:49 AM, Daniel P. Berrange wrote:
> On Tue, May 03, 2011 at 10:45:36AM -0600, Eric Blake wrote:
>> Clang detected that vol-download will call unlink(NULL) if there
>> is a parse error during option parsing.  Also, mingw doesn't like
>> unlinking an open file.
>>
>> * tools/virsh.c (cmdVolDownload): Only unlink file if created.
>> ---
>>  tools/virsh.c |    9 +++++----
>>  1 files changed, 5 insertions(+), 4 deletions(-)
> 
> ACK

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110503/7276ac9d/attachment-0001.sig>


More information about the libvir-list mailing list