diff options
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/krb5_child-test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c index 82252a610..4d39e1c00 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); |