Commit 776f0bd9 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

don't log failed socket() calls

parent cd9aabb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 sockfd=(socket)(domain, type, protocol);
  if(logfile)
  if(logfile && (sockfd!=-1))
    fprintf(logfile, "FD %s:%d socket() = %d\n",
            source, line, sockfd);
  return sockfd;