oops, forgot something
authorTom Yu <tlyu@mit.edu>
Thu, 17 Jun 2004 23:34:49 +0000 (23:34 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 17 Jun 2004 23:34:49 +0000 (23:34 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16479 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/ser_sctx.c

index d33801a08a15a0f4d5678fc5b566fd72cfbcc409..0004e662139308196d7a1c7d38ebe856a7ca7dc6 100644 (file)
@@ -1,7 +1,7 @@
 2004-06-17  Tom Yu  <tlyu@mit.edu>
 
-       * ser_sctx.c (kg_ctx_size, kg_ctx_externalize): Adjust for new
-       field cred_rcache.
+       * ser_sctx.c (kg_ctx_size, kg_ctx_externalize):
+       (kg_ctx_internalize): Adjust for new field cred_rcache.
 
 2004-06-15  Tom Yu  <tlyu@mit.edu>
 
index c5468be782f7fd322f2eac559ea6fd64f35fd493..00ea7825481e7b17bfa2953c90725db86f778ebc 100644 (file)
@@ -519,7 +519,7 @@ kg_ctx_internalize(kcontext, argp, buffer, lenremain)
        kret = ENOMEM;
 
        /* Get a context */
-       if ((remain >= (16*sizeof(krb5_int32)
+       if ((remain >= (17*sizeof(krb5_int32)
                        + 2*sizeof(krb5_int64)
                        + sizeof(ctx->seed))) &&
            (ctx = (krb5_gss_ctx_id_rec *)
@@ -640,6 +640,9 @@ kg_ctx_internalize(kcontext, argp, buffer, lenremain)
                if (kret == EINVAL)
                    kret = 0;
            }
+           if (!kret)
+               kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain);
+           ctx->cred_rcache = ibuf;
            if (!kret)
                kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain);
            ctx->acceptor_subkey_cksumtype = ibuf;