+Thu Feb 29 16:14:46 1996 Theodore Y. Ts'o <tytso@dcl>
+
+ * sendto_kdc.c (krb5_sendto_kdc): Take out calls to
+ SOCKET_INITIALIZE and SOCKET_CLEANUP. This gets done in
+ win_glue.c, and we only need to do this once. (XXX What
+ about Macintosh?)
+
Tue Feb 27 18:48:03 1996 Theodore Y. Ts'o <tytso@dcl>
* hostaddr.c (krb5_os_hostaddr): Use #define NEED_SOCKETS instead
}
reply->length = krb5_max_dgram_size;
+#if 0
+ /*
+ * Not needed for Windows, since it's done by the DLL
+ * initialization. XXX What about for the Macintosh?
+ *
+ * See below for commented out SOCKET_CLEANUP()
+ */
if (SOCKET_INITIALIZE()) { /* PC needs this for some tcp/ip stacks */
krb5_xfree(addr);
krb5_xfree(socklist);
free(reply->data);
return SOCKET_ERRNO;
}
+#endif
/*
* do exponential backoff.
}
retval = KRB5_KDC_UNREACH;
out:
- SOCKET_CLEANUP(); /* Done with sockets for now */
for (i = 0; i < naddr; i++)
if (socklist[i] != INVALID_SOCKET)
(void) closesocket (socklist[i]);
+#if 0
+ SOCKET_CLEANUP(); /* Done with sockets for now */
+#endif
krb5_xfree(addr);
krb5_xfree(socklist);
if (retval) {