diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-09-23 12:47:07 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-09-23 12:47:07 +0000 |
commit | 711650b178fb5b087fd8a0fc16be363a53e7e38b (patch) | |
tree | 11fe83fdd9a64e25704793dcd896859dd958b7ea /lib | |
parent | c9adbc9f1c8356f4b2b5d26cb6758c4846f32c20 (diff) |
test 119 proved a memory leak in the FTP parts when IPv6 is enabled and the
RETR fails, this corrects it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |