Date: | Mon, 24 Sep 2007 20:03:18 +0530 |
From: | eswars <eswars@huawei.com> |
Subject: | RE: krb5_cc_resolve is crashing in windows XP j |
To: | kfw-bugs@mit.edu |
CC: | altman@secure-endpoints.com |
Hi Jeffrey,
It is failed when cred.client is assigned to temp variable inside following
function.
krb5_copy_principal(context, creds.client, &data->princ). After this
assignment there is NULL check, but it is failing before it self.
I fixed this problem as following. Only one null check is missed.
lib/krb5/ccache/cc_mslsa.c
static krb5_error_code KRB5_CALLCONV
krb5_lcc_resolve (krb5_context context, krb5_ccache *id, const char
*residual){
...............
if (!MSCredToMITCred(msticket, msticket->DomainName, context, &creds))
retval = KRB5_FCC_INTERNAL;
LsaFreeReturnBuffer(msticket);
if(NULL == creds.client)
{
return KRB5_FCC_NOFILE;// please provide me correct
error code. What I can return.
}
...................................
}
This has been produced in windows xp sp2 /sp0 English if you logged in as
Domain administrator as per my analysis.
Please provide me why it is caused.
One request I wanted VC++ solution files for building/ debugging libraries
where can I get those.
Regards,
Eswar s
****************************************************************************
****************************
This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!
It is failed when cred.client is assigned to temp variable inside following
function.
krb5_copy_principal(context, creds.client, &data->princ). After this
assignment there is NULL check, but it is failing before it self.
I fixed this problem as following. Only one null check is missed.
lib/krb5/ccache/cc_mslsa.c
static krb5_error_code KRB5_CALLCONV
krb5_lcc_resolve (krb5_context context, krb5_ccache *id, const char
*residual){
...............
if (!MSCredToMITCred(msticket, msticket->DomainName, context, &creds))
retval = KRB5_FCC_INTERNAL;
LsaFreeReturnBuffer(msticket);
if(NULL == creds.client)
{
return KRB5_FCC_NOFILE;// please provide me correct
error code. What I can return.
}
...................................
}
This has been produced in windows xp sp2 /sp0 English if you logged in as
Domain administrator as per my analysis.
Please provide me why it is caused.
One request I wanted VC++ solution files for building/ debugging libraries
where can I get those.
Regards,
Eswar s
****************************************************************************
****************************
This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!