summaryrefslogtreecommitdiffstats
path: root/src/ccapi/lib/ccapi_context.c
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-10-22 20:40:29 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-10-22 20:40:29 +0000
commit50e7f8e37b9d532343d9316677559664df88b466 (patch)
tree5960ef9fe962d2042fe64c01727072dbd4e80a0b /src/ccapi/lib/ccapi_context.c
parent006d3ec49636996908bf1c109f01fe76192e4e68 (diff)
downloadkrb5-50e7f8e37b9d532343d9316677559664df88b466.tar.gz
krb5-50e7f8e37b9d532343d9316677559664df88b466.tar.xz
krb5-50e7f8e37b9d532343d9316677559664df88b466.zip
Remove ipc message sent on cc_context_release
IPC message was causing problems when called from thread fini function (via krb5_stdcc_shutdown). ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20908 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/ccapi/lib/ccapi_context.c')
-rw-r--r--src/ccapi/lib/ccapi_context.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/ccapi/lib/ccapi_context.c b/src/ccapi/lib/ccapi_context.c
index 0f1712ea4..7ba3db4d2 100644
--- a/src/ccapi/lib/ccapi_context.c
+++ b/src/ccapi/lib/ccapi_context.c
@@ -198,6 +198,16 @@ cc_int32 cc_initialize (cc_context_t *out_context,
#endif
/* ------------------------------------------------------------------------ */
+/*
+ * Currently does not need to talk to the server since the server must
+ * handle cleaning up resources from crashed clients anyway.
+ *
+ * NOTE: if server communication is ever added here, make sure that
+ * krb5_stdcc_shutdown calls an internal function which does not talk to the
+ * server. krb5_stdcc_shutdown is called from thread fini functions and may
+ * crash talking to the server depending on what order the OS calls the fini
+ * functions (ie: if the ipc layer fini function is called first).
+ */
cc_int32 ccapi_context_release (cc_context_t in_context)
{
@@ -207,17 +217,6 @@ cc_int32 ccapi_context_release (cc_context_t in_context)
if (!in_context) { err = ccErrBadParam; }
if (!err) {
- err = cci_context_sync (context, 0);
- }
-
- if (!err) {
- err = cci_ipc_send_no_launch (cci_context_release_msg_id,
- context->identifier,
- NULL,
- NULL);
- }
-
- if (!err) {
cci_identifier_release (context->identifier);
free (context->functions);
free (context);