mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
don't log failed socket() calls
This commit is contained in:
parent
cd9aabb474
commit
776f0bd95e
@ -204,7 +204,7 @@ void curl_dofree(void *ptr, int line, const char *source)
|
|||||||
int curl_socket(int domain, int type, int protocol, int line, char *source)
|
int curl_socket(int domain, int type, int protocol, int line, char *source)
|
||||||
{
|
{
|
||||||
int sockfd=(socket)(domain, type, protocol);
|
int sockfd=(socket)(domain, type, protocol);
|
||||||
if(logfile)
|
if(logfile && (sockfd!=-1))
|
||||||
fprintf(logfile, "FD %s:%d socket() = %d\n",
|
fprintf(logfile, "FD %s:%d socket() = %d\n",
|
||||||
source, line, sockfd);
|
source, line, sockfd);
|
||||||
return sockfd;
|
return sockfd;
|
||||||
|
Loading…
Reference in New Issue
Block a user