From 7bd86eab97a2528356baab18224d09def8a5d949 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 2 Dec 2005 10:24:48 +0000 Subject: [PATCH] Increase size of PurgeRequest buffers for MSLSA Increase the size of the PurgeRequest buffers for MSLSA. Windows 2003 SP1 is writing beyond the end of the buffer during the Lsa call. ticket: new status: resolved component: krb5-libs target_version: 1.4.4 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17531 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/ChangeLog | 4 ++++ src/lib/krb5/ccache/cc_mslsa.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/ccache/ChangeLog b/src/lib/krb5/ccache/ChangeLog index e4b98a105..c5063fb42 100644 --- a/src/lib/krb5/ccache/ChangeLog +++ b/src/lib/krb5/ccache/ChangeLog @@ -1,3 +1,7 @@ +2005-12-02 Jeffrey Altman + + * cc_mslsa.c: increase the size of the PurgeRequest + 2005-10-27 Jeffrey Altman * ccdefault.c: (krb5int_cc_default) - add KFW support for multiple ccaches diff --git a/src/lib/krb5/ccache/cc_mslsa.c b/src/lib/krb5/ccache/cc_mslsa.c index e7e59766e..6a75aef86 100644 --- a/src/lib/krb5/ccache/cc_mslsa.c +++ b/src/lib/krb5/ccache/cc_mslsa.c @@ -839,7 +839,7 @@ PurgeTicket2000( HANDLE LogonHandle, ULONG PackageId, NTSTATUS Status = 0; NTSTATUS SubStatus = 0; KERB_PURGE_TKT_CACHE_REQUEST * pPurgeRequest; - DWORD dwRequestLen = sizeof(KERB_PURGE_TKT_CACHE_REQUEST) + 1024; + DWORD dwRequestLen = sizeof(KERB_PURGE_TKT_CACHE_REQUEST) + 2048; char * sname = NULL, * srealm = NULL; if (krb5_unparse_name(context, cred->server, &sname)) @@ -893,7 +893,7 @@ PurgeTicketXP( HANDLE LogonHandle, ULONG PackageId, NTSTATUS Status = 0; NTSTATUS SubStatus = 0; KERB_PURGE_TKT_CACHE_EX_REQUEST * pPurgeRequest; - DWORD dwRequestLen = sizeof(KERB_PURGE_TKT_CACHE_EX_REQUEST) + 2048; + DWORD dwRequestLen = sizeof(KERB_PURGE_TKT_CACHE_EX_REQUEST) + 4096; char * cname = NULL, * crealm = NULL; char * sname = NULL, * srealm = NULL; -- 2.26.2