aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index cee5bc2d8..03dcce86c 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -732,6 +732,7 @@ void Curl_freeaddrinfo(Curl_addrinfo *ai)
free(ai->ai_addr);
if(ai->ai_canonname)
free(ai->ai_canonname);
+ memset(ai, 0, sizeof(Curl_addrinfo));
free(ai);
ai = next;
}