/[svn]/ircd-hybrid-7.2/src/irc_getaddrinfo.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/irc_getaddrinfo.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1000 by lusky, Sun Oct 2 21:05:51 2005 UTC revision 1001 by michael, Sat Aug 29 22:44:44 2009 UTC
# Line 387  explore_null(const struct addrinfo *pai, Line 387  explore_null(const struct addrinfo *pai,
387           */           */
388          s = socket(pai->ai_family, SOCK_DGRAM, 0);          s = socket(pai->ai_family, SOCK_DGRAM, 0);
389          if (s < 0) {          if (s < 0) {
 #ifdef _WIN32  
                 errno = WSAGetLastError();  
 #endif  
390                  if (errno != EMFILE)                  if (errno != EMFILE)
391                          return 0;                          return 0;
392          } else          } else
 #ifdef _WIN32  
                 closesocket(s);  
 #else  
393                  close(s);                  close(s);
 #endif  
394    
395          /*          /*
396           * if the servname does not match socktype/protocol, ignore it.           * if the servname does not match socktype/protocol, ignore it.

Legend:
Removed from v.1000  
changed lines
  Added in v.1001

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26