changes for ciphertext changes
authorJohn Kohl <jtkohl@mit.edu>
Wed, 10 Oct 1990 16:48:08 +0000 (16:48 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 10 Oct 1990 16:48:08 +0000 (16:48 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1223 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/copy_tick.c

index af2c130d44d67dcabdc96f016215f49ee5d3c9fb..c66d082b709d537d2a900652515f9ffddfcc4d38 100644 (file)
@@ -92,15 +92,15 @@ krb5_ticket **pto;
     *tempto = *from;
     if (retval = krb5_copy_principal(from->server, &tempto->server))
        return retval;
-    if (retval = krb5_copy_data(&from->enc_part, &scratch)) {
+    if (retval = krb5_copy_data(&from->enc_part.ciphertext, &scratch)) {
        krb5_free_principal(tempto->server);
        xfree(tempto);
        return retval;
     }
-    tempto->enc_part = *scratch;
+    tempto->enc_part.ciphertext = *scratch;
     xfree(scratch);
     if (retval = krb5_copy_enc_tkt_part(from->enc_part2, &tempto->enc_part2)) {
-       xfree(tempto->enc_part.data);
+       xfree(tempto->enc_part.ciphertext.data);
        krb5_free_principal(tempto->server);
        xfree(tempto);
        return retval;