From 58b9d9cd605842b02d2ea2c7f291e83be927a681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 2 Nov 2008 07:05:18 +0000 Subject: [PATCH] cursor is dead git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24003 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kcm/cache.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/kcm/cache.c b/kcm/cache.c index 01c20ab5a..8def1c5d7 100644 --- a/kcm/cache.c +++ b/kcm/cache.c @@ -219,8 +219,6 @@ kcm_ccache_alloc(krb5_context context, slot->client = NULL; slot->server = NULL; slot->creds = NULL; - slot->n_cursor = 0; - slot->cursors = NULL; slot->key.keytab = NULL; slot->tkt_life = 0; slot->renew_life = 0; @@ -247,7 +245,6 @@ kcm_ccache_remove_creds_internal(krb5_context context, kcm_ccache ccache) { struct kcm_creds *k; - struct kcm_cursor *c; k = ccache->creds; while (k != NULL) { @@ -260,20 +257,6 @@ kcm_ccache_remove_creds_internal(krb5_context context, } ccache->creds = NULL; - /* remove anything that would have pointed into the creds too */ - - ccache->n_cursor = 0; - - c = ccache->cursors; - while (c != NULL) { - struct kcm_cursor *old; - - old = c; - c = c->next; - free(old); - } - ccache->cursors = NULL; - return 0; }