Make sure authorization data in the TGS_REQ is initialized correctly
authorTheodore Tso <tytso@mit.edu>
Thu, 3 Jun 1993 00:14:42 +0000 (00:14 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 3 Jun 1993 00:14:42 +0000 (00:14 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2556 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/send_tgs.c

index 47040d9b5cff549c905cac2d32df5509bcc1c46d..52516e812ee72489f0de18e4a1e0f51c560fff1f 100644 (file)
@@ -118,6 +118,9 @@ OLDDECLARG(krb5_response *,rep)
        if (retval = encode_krb5_authdata(authorization_data, &scratch))
            return(retval);
        krb5_use_cstype(&eblock, etype);
+       tgsreq.authorization_data.etype = etype;
+       tgsreq.authorization_data.kvno = 0; /* ticket session key has */
+                                           /* no version */
        tgsreq.authorization_data.ciphertext.length =
            krb5_encrypt_size(scratch->length,
                              eblock.crypto_entry);