summaryrefslogtreecommitdiff
path: root/lib/hostip6.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-27 05:29:17 +0000
committerYang Tse <yangsita@gmail.com>2008-10-27 05:29:17 +0000
commite29f62f0a7034a2a42fb43b913e6576e63a03fe5 (patch)
tree493ea203a4c942151fb7716baea92ff9fab6ece1 /lib/hostip6.c
parent39e5fa6ae86c0df6c59da8c732ea8f5db35257fd (diff)
downloadcurl-e29f62f0a7034a2a42fb43b913e6576e63a03fe5.tar.gz
add null-pointer check
Diffstat (limited to 'lib/hostip6.c')
-rw-r--r--lib/hostip6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c
index e1c901212..228352d26 100644
--- a/lib/hostip6.c
+++ b/lib/hostip6.c
@@ -85,7 +85,8 @@
*/
void Curl_freeaddrinfo(Curl_addrinfo *p)
{
- freeaddrinfo(p);
+ if(p)
+ freeaddrinfo(p);
}
#ifdef CURLRES_ASYNCH