summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tests/krb5_child-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c
index 82252a61..4d39e1c0 100644
--- a/src/tests/krb5_child-test.c
+++ b/src/tests/krb5_child-test.c
@@ -551,7 +551,9 @@ main(int argc, const char *argv[])
ret = 0;
done:
- if (rm_ccache && ctx->res && ctx->res->ccname) {
+ if (rm_ccache && ctx->res
+ && ctx->res->ccname
+ && ctx->kr) {
ctx->kr->krb5_ctx->cc_be->remove(ctx->res->ccname);
}
free(password);