From 413fb0f9224ca34bda6f1f34d1c9c748d425f9e5 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 17 Nov 1994 07:00:18 +0000 Subject: [PATCH] Check to make sure the subkey exists before setting its encryption type git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4666 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 cea75674a..bbd848090 100644 --- a/src/lib/krb5/krb/rd_rep.c +++ b/src/lib/krb5/krb/rd_rep.c @@ -104,6 +104,7 @@ free(scratch.data);} /* now decode the decrypted stuff */ retval = decode_krb5_ap_rep_enc_part(&scratch, repl); clean_scratch(); - (*repl)->subkey->etype = reply->enc_part.etype; + if ((*repl)->subkey) + (*repl)->subkey->etype = reply->enc_part.etype; return retval; } -- 2.26.2