diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-12-18 16:13:37 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-12-18 16:13:37 +0000 |
commit | 184ad46a27dc65a82faa2cda76fe91bcca3404cf (patch) | |
tree | 34cd8bc1c63d52318f6c686f0da4f47d96712fc4 /lib/ftp.c | |
parent | 74d35416a2ee4d0baa84e2b5daab2fc96dda5a58 (diff) |
fixed accept() for memory debugging
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -197,6 +197,8 @@ static CURLcode AllowServerConnect(struct UrlData *data, getsockname(sock, (struct sockaddr *) &add, (int *)&size); s=accept(sock, (struct sockaddr *) &add, (int *)&size); + sclose(sock); /* close the first socket */ + if( -1 == s) { /* DIE! */ failf(data, "Error accept()ing server connect"); |