Check to make sure the subkey exists before setting its encryption type
authorTheodore Tso <tytso@mit.edu>
Thu, 17 Nov 1994 07:00:18 +0000 (07:00 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 17 Nov 1994 07:00:18 +0000 (07:00 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4666 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/rd_rep.c

index cea75674a869d468210f2a40dd5ef9516884910d..bbd84809012fe786a962032e1e0295fa86a260bc 100644 (file)
@@ -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;
 }