mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:43:31 +03:00
fixed accept() for memory debugging
This commit is contained in:
parent
74d35416a2
commit
184ad46a27
4 changed files with 20 additions and 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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue