summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/heimdal/lib/gssapi/accept_sec_context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/heimdal/lib/gssapi/accept_sec_context.c b/source4/heimdal/lib/gssapi/accept_sec_context.c
index afca449c5c..50d150e57c 100644
--- a/source4/heimdal/lib/gssapi/accept_sec_context.c
+++ b/source4/heimdal/lib/gssapi/accept_sec_context.c
@@ -77,6 +77,7 @@ gsskrb5_is_cfx(gss_ctx_id_t context_handle, int *is_cfx)
{
krb5_keyblock *key;
int acceptor = (context_handle->more_flags & LOCAL) == 0;
+ *is_cfx = 0;
if (acceptor) {
if (context_handle->auth_context->local_subkey)
@@ -403,9 +404,10 @@ gsskrb5_acceptor_start
crypto, KRB5_KU_AP_REQ_AUTH_CKSUM, NULL, 0,
authenticator->cksum);
krb5_free_authenticator(gssapi_krb5_context, &authenticator);
+ krb5_crypto_destroy(gssapi_krb5_context, crypto);
if(kret) {
- ret = GSS_S_FAILURE;
+ ret = GSS_S_BAD_SIG;
*minor_status = kret;
gssapi_krb5_set_error_string ();
return ret;