From: Theodore Tso Date: Thu, 17 Nov 1994 07:00:18 +0000 (+0000) Subject: Check to make sure the subkey exists before setting its encryption type X-Git-Tag: krb5-1.0-beta5~983 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=413fb0f9224ca34bda6f1f34d1c9c748d425f9e5;p=krb5.git 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 --- 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; }