diff --git a/lib/krb5/build_auth.c b/lib/krb5/build_auth.c index 25aed8013..0da4cf0e8 100644 --- a/lib/krb5/build_auth.c +++ b/lib/krb5/build_auth.c @@ -70,9 +70,9 @@ krb5_build_authenticator (krb5_context context, auth->cusec = usec; } krb5_generate_subkey (context, &cred->session, &auth->subkey); - krb5_free_keyblock_contents(context, auth_context->local_subkey); - krb5_copy_keyblock_contents(context, auth->subkey, - auth_context->local_subkey); + krb5_free_keyblock(context, auth_context->local_subkey); + krb5_copy_keyblock(context, auth->subkey, + &auth_context->local_subkey); if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) { krb5_generate_seq_number (context,