git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
80fc057
)
kauth-windows-handle-leak-20080203
author
Jeffrey Altman
<jaltman@secure-endpoints.com>
Mon, 4 Feb 2008 03:56:13 +0000 (
03:56
+0000)
committer
Jeffrey Altman
<jaltman@secure-endpoints.com>
Mon, 4 Feb 2008 03:56:13 +0000 (
03:56
+0000)
LICENSE MIT
close() does not close sockets on Windows
src/kauth/krb_udp.c
patch
|
blob
|
history
diff --git
a/src/kauth/krb_udp.c
b/src/kauth/krb_udp.c
index
6178c1f
..
b019315
100644
(file)
--- a/
src/kauth/krb_udp.c
+++ b/
src/kauth/krb_udp.c
@@
-60,6
+60,9
@@
RCSID
#define KDC_GEN_ERR 20
#endif
+#ifndef AFS_NT40_ENV
+#define closesocket close
+#endif
int krb_udp_debug = 0;
@@
-897,11
+900,11
@@
SocketListener()
}
}
if (sock_kerb >= 0) {
- close(sock_kerb);
+ closesocket(sock_kerb);
sock_kerb = -1;
}
if (sock_kerb5 >= 0) {
- close(sock_kerb5);
+ closesocket(sock_kerb5);
sock_kerb5 = -1;
}
printf("UDP SocketListener exiting due to error\n");