svn rev #25206: trunk/src/appl/gss-sample/

hartmans@MIT.EDU hartmans at MIT.EDU
Sun Sep 18 20:59:25 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25206
Commit By: hartmans
Log Message:
Use closesocket() instead of close() for sockets on Windows

Signed-off-by: Alexey Melnikov <aamelnikov at gmail.com>
Signed-off-by: Sam Hartman <hartmans at debian.org>


Changed Files:
U   trunk/src/appl/gss-sample/gss-server.c
Modified: trunk/src/appl/gss-sample/gss-server.c
===================================================================
--- trunk/src/appl/gss-sample/gss-server.c	2011-09-19 00:59:20 UTC (rev 25205)
+++ trunk/src/appl/gss-sample/gss-server.c	2011-09-19 00:59:24 UTC (rev 25206)
@@ -320,12 +320,12 @@
     (void) setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *) &on, sizeof(on));
     if (bind(s, (struct sockaddr *) &saddr, sizeof(saddr)) < 0) {
         perror("binding socket");
-        (void) close(s);
+        (void) closesocket(s);
         return -1;
     }
     if (listen(s, 5) < 0) {
         perror("listening on socket");
-        (void) close(s);
+        (void) closesocket(s);
         return -1;
     }
     return s;




More information about the cvs-krb5 mailing list