From aa54e47fecd9d7e2b76cdde2947b683157df8cf1 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 1 Mar 1996 00:45:51 +0000 Subject: [PATCH] Added note: Note that calls to WSAStartup and WSACleanup must be in matched pairs. If there is a missing WSACleanup call when a program exits, under Lan Workplace, the name resolver will stop working. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7578 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/ChangeLog | 6 +++++- src/lib/win_glue.c | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/lib/ChangeLog b/src/lib/ChangeLog index cc3227655..0a143b439 100644 --- a/src/lib/ChangeLog +++ b/src/lib/ChangeLog @@ -1,6 +1,10 @@ Thu Feb 29 16:49:33 1996 Theodore Y. Ts'o - * win_glue.c: Make sure WSACleanup() is called when the DLL exits. + * win_glue.c: Make sure WSACleanup() is called when the DLL exits. + Note that calls to WSAStartup and WSACleanup must be in + matched pairs. If there is a missing WSACleanup call when + a program exits, under Lan Workplace, the name resolver + will stop working. Tue Feb 27 18:47:17 1996 Theodore Y. Ts'o diff --git a/src/lib/win_glue.c b/src/lib/win_glue.c index 40dbab9c7..c58146764 100644 --- a/src/lib/win_glue.c +++ b/src/lib/win_glue.c @@ -7,6 +7,13 @@ * The code is pretty much copied from winsock.txt from winsock-1.1, * available from: * ftp://sunsite.unc.edu/pub/micro/pc-stuff/ms-windows/winsock/winsock-1.1 + * + * Note: WSAStartup and WSACleanup is called here (and only here). + * This assumes that under Windows, we only use this library via the + * DLL. Note that calls to WSAStartup and WSACleanup must be in + * matched pairs. If there is a missing WSACleanup call when a + * program exits, under Lan Workplace, the name resolver will stop + * working. */ /* We can't include winsock.h directly because of /Za (stdc) options */ -- 2.26.2