rd_req_dec.c (decrypt_authenticator): If the subkey doesn't exist,
authorTheodore Tso <tytso@mit.edu>
Tue, 13 Dec 1994 20:31:19 +0000 (20:31 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 13 Dec 1994 20:31:19 +0000 (20:31 +0000)
don't try to set the subkey's etype.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4729 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/rd_req_dec.c

index 59da66f82607b91a805ebffdd2cd24bc2de5fdbb..612040c87ca1309d922f4b6738195b73a59b03a9 100644 (file)
@@ -1,3 +1,8 @@
+Wed Dec  7 17:52:08 1994    <tytso@localhost>
+
+       * rd_req_dec.c (decrypt_authenticator): If the subkey doesn't
+               exist, don't try to set the subkey's etype.
+
 Wed Nov 30 17:10:39 1994  Theodore Y. Ts'o  (tytso@dcl)
 
        * bld_princ.c (krb5_build_principal_va): Set the principal's type
index 9f17f87c4f1bdc36858afe552ed9894f57a17587..fc3a0f801bd9e6b58e90cdc6917e24d9e6993a1e 100644 (file)
@@ -336,7 +336,8 @@ free(scratch.data);}
     /*  now decode the decrypted stuff */
     if (!(retval = decode_krb5_authenticator(&scratch, &local_auth))) {
        *authpp = local_auth;
-       local_auth->subkey->etype = request->authenticator.etype;
+       if (local_auth->subkey)
+               local_auth->subkey->etype = request->authenticator.etype;
     }
     clean_scratch();
     return retval;