1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

test 119 proved a memory leak in the FTP parts when IPv6 is enabled and the

RETR fails, this corrects it.
This commit is contained in:
Daniel Stenberg 2001-09-23 12:47:07 +00:00
parent c9adbc9f1c
commit 711650b178

View File

@ -1005,6 +1005,10 @@ CURLcode _ftp(struct connectdata *conn)
freeaddrinfo(res);
return CURLE_FTP_PORT_FAILED;
}
/* we set the secondary socket variable to this for now, it
is only so that the cleanup function will close it in case
we fail before the true secondary stuff is made */
conn->secondarysocket = portsock;
#else
struct sockaddr_in sa;