Copy keyblock from message instead of setting a pointer to data which is going to...
authorPaul Park <pjpark@mit.edu>
Tue, 29 Aug 1995 18:37:55 +0000 (18:37 +0000)
committerPaul Park <pjpark@mit.edu>
Tue, 29 Aug 1995 18:37:55 +0000 (18:37 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6621 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/rd_rep.c

index c55646be00ec83fe350ad44c9bf556addb64743d..4414215cb52f3e669ca91d25f204138b22f6967f 100644 (file)
@@ -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 */