fixed accept() for memory debugging

This commit is contained in:
Daniel Stenberg
2000-12-18 16:13:37 +00:00
parent 74d35416a2
commit 184ad46a27
4 changed files with 20 additions and 0 deletions

View File

@@ -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");