use-closesocket-not-close-20031209
authorJeffrey Altman <jaltman@grand.central.org>
Wed, 10 Dec 2003 07:03:55 +0000 (07:03 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 10 Dec 2003 07:03:55 +0000 (07:03 +0000)
In Winsock, the function to close sockets is closesocket() not close()

src/WINNT/afsd/cm_dns.c

index 59e07f2..f394cf2 100644 (file)
@@ -639,7 +639,7 @@ int getAFSServer(char *cellName, int *cellHosts, int *numServers, int *ttl)
   else
     *numServers = 0;
   
-  close(commSock);
+  closesocket(commSock);
   if (*numServers == 0)
     return(-1);