use the right database to get the error from.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23666 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1211,7 +1211,6 @@ scc_get_cache_next(krb5_context context,
|
||||
struct cache_iter *ctx = cursor;
|
||||
krb5_error_code ret;
|
||||
const char *name;
|
||||
krb5_scache *s = NULL;
|
||||
|
||||
again:
|
||||
ret = sqlite3_step(ctx->stmt);
|
||||
@@ -1220,7 +1219,7 @@ again:
|
||||
return KRB5_CC_END;
|
||||
} else if (ret != SQLITE_ROW) {
|
||||
krb5_set_error_message(context, KRB5_CC_IO, "Database failed: %s",
|
||||
sqlite3_errmsg(s->db));
|
||||
sqlite3_errmsg(ctx->db));
|
||||
return KRB5_CC_IO;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user