From: Tom Yu Date: Thu, 17 Jun 2004 23:34:49 +0000 (+0000) Subject: oops, forgot something X-Git-Tag: krb5-1.4-beta1~310 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=99a15262627188c2c0204bac10a953758b54b0c4;p=krb5.git oops, forgot something git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16479 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index d33801a08..0004e6621 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,7 +1,7 @@ 2004-06-17 Tom Yu - * 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 diff --git a/src/lib/gssapi/krb5/ser_sctx.c b/src/lib/gssapi/krb5/ser_sctx.c index c5468be78..00ea78254 100644 --- a/src/lib/gssapi/krb5/ser_sctx.c +++ b/src/lib/gssapi/krb5/ser_sctx.c @@ -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;