Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:Update
libcares2
0001-ares_destroy.c-fix-segfault-in-ares_destro...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-ares_destroy.c-fix-segfault-in-ares_destroy_options.patch of Package libcares2
From 5662ee94d2c55b0438679939c294870ec965cfda Mon Sep 17 00:00:00 2001 From: Yang Tse <yangsita@gmail.com> Date: Sun, 21 Aug 2011 16:41:43 +0200 Subject: [PATCH 1/3] ares_destroy.c: fix segfault in ares_destroy_options() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cristian RodrÃguez <crrodriguez@opensuse.org> --- ares_destroy.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ares_destroy.c b/ares_destroy.c index 5e274da..a3f6ea2 100644 --- a/ares_destroy.c +++ b/ares_destroy.c @@ -1,6 +1,6 @@ /* Copyright 1998 by the Massachusetts Institute of Technology. - * Copyright (C) 2004-2010 by Daniel Stenberg + * Copyright (C) 2004-2011 by Daniel Stenberg * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without @@ -29,10 +29,12 @@ void ares_destroy_options(struct ares_options *options) free(options->servers); for (i = 0; i < options->ndomains; i++) free(options->domains[i]); - free(options->domains); + if(options->domains) + free(options->domains); if(options->sortlist) free(options->sortlist); - free(options->lookups); + if(options->lookups) + free(options->lookups); } void ares_destroy(ares_channel channel) -- 1.7.4.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor