summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/krb5')
-rw-r--r--src/lib/krb5/krb/rd_rep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/rd_rep.c b/src/lib/krb5/krb/rd_rep.c
index c55646be00..4414215cb5 100644
--- a/src/lib/krb5/krb/rd_rep.c
+++ b/src/lib/krb5/krb/rd_rep.c
@@ -104,7 +104,8 @@ krb5_rd_rep(context, auth_context, inbuf, repl)
/* Set auth subkey */
if ((*repl)->subkey) {
(*repl)->subkey->etype = reply->enc_part.etype;
- auth_context->remote_subkey = (*repl)->subkey;
+ retval = krb5_copy_keyblock(context, (*repl)->subkey,
+ &auth_context->remote_subkey);
}
/* Get remote sequence number */