From: Paul Park Date: Tue, 29 Aug 1995 18:37:55 +0000 (+0000) Subject: Copy keyblock from message instead of setting a pointer to data which is going to... X-Git-Tag: krb5-1.0-beta6~1235 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f0bcdc5996b5176020d96e12ef477ed1acd1dd5c;p=krb5.git Copy keyblock from message instead of setting a pointer to data which is going to be freed git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6621 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/rd_rep.c b/src/lib/krb5/krb/rd_rep.c index c55646be0..4414215cb 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 */