diff options
Diffstat (limited to 'src/lib/gssapi')
-rw-r--r-- | src/lib/gssapi/krb5/accept_sec_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/gssapi/krb5/accept_sec_context.c b/src/lib/gssapi/krb5/accept_sec_context.c index ed4c3e221..618b012f9 100644 --- a/src/lib/gssapi/krb5/accept_sec_context.c +++ b/src/lib/gssapi/krb5/accept_sec_context.c @@ -141,8 +141,10 @@ rd_and_store_for_creds(context, auth_context, inbuf, out_cred) goto cleanup; ccache = template_ccache; /* krb5_cc_gen_new will replace so make a copy */ - if ((retval = krb5_cc_gen_new(context, &ccache))) + if ((retval = krb5_cc_gen_new(context, &ccache))) { + ccache = NULL; goto cleanup; + } if ((retval = krb5_cc_initialize(context, ccache, creds[0]->client))) goto cleanup; |