From: ueno Date: Fri, 8 Mar 2002 07:18:08 +0000 (+0000) Subject: * starttls.c (tls_connect): Don't free addrinfo structure. X-Git-Tag: starttls-0_9 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6629c243f1b9a201c4b635e3a124de5d925b607e;p=elisp%2Fstarttls.git * starttls.c (tls_connect): Don't free addrinfo structure. From Jun-ya Kato . --- 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