From f0bcdc5996b5176020d96e12ef477ed1acd1dd5c Mon Sep 17 00:00:00 2001 From: Paul Park Date: Tue, 29 Aug 1995 18:37:55 +0000 Subject: [PATCH] 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 --- src/lib/krb5/krb/rd_rep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.26.2