From 6629c243f1b9a201c4b635e3a124de5d925b607e Mon Sep 17 00:00:00 2001 From: ueno Date: Fri, 8 Mar 2002 07:18:08 +0000 Subject: [PATCH] * starttls.c (tls_connect): Don't free addrinfo structure. From Jun-ya Kato . --- starttls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/starttls.c b/starttls.c index 1bee684..4c95786 100644 --- a/starttls.c +++ b/starttls.c @@ -143,7 +143,7 @@ tls_connect (hostname, service) memset (&hints, 0, sizeof (hints)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; - if (getaddrinfo (hostname, service, &hints, &in)) + if (getaddrinfo (hostname, service, &hints, &in0)) return -1; for (in = in0; in; in = in->ai_next) @@ -159,7 +159,6 @@ tls_connect (hostname, service) break; } - freeaddrinfo (in0); if (server < 0) return -1; #else -- 1.7.10.4