diff options
Diffstat (limited to 'lib/hostip6.c')
-rw-r--r-- | lib/hostip6.c | 3 |
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 |