From 4fa7c09fafe28730f2772c505d13a0033000feac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 7 Apr 2008 11:47:07 +0000 Subject: [PATCH] Make it pass most of the tests. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22822 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/scache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/krb5/scache.c b/lib/krb5/scache.c index cf243d359..ec37cf675 100644 --- a/lib/krb5/scache.c +++ b/lib/krb5/scache.c @@ -525,6 +525,9 @@ scc_destroy(krb5_context context, krb5_scache *s = SCACHE(id); int ret; + if (s->cid == SCACHE_INVALID_CID) + return 0; + sqlite3_bind_int(s->dcache, 1, s->cid); do { ret = sqlite3_step(s->dcache); @@ -1002,7 +1005,7 @@ scc_default_name(krb5_context context, char **str) /** - * Variable containing the SCACHE based credential cache implemention. + * Variable containing the SDB based credential cache implemention. * * @ingroup krb5_ccache */