[17537] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

ksetpwd.c bug

daemon@ATHENA.MIT.EDU (Chris Hecker)
Wed Mar 21 01:08:03 2012

Message-ID: <4F696220.9020609@d6.com>
Date: Tue, 20 Mar 2012 22:07:44 -0700
From: Chris Hecker <checker@d6.com>
MIME-Version: 1.0
To: "krbdev@mit.edu List" <krbdev@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu


Not sure if anybody noticed my parenthetical phrase about this in my
kerberos list clock skew thread, but this code is in ksetpwd.c:

static void get_init_creds_opt_init( krb5_get_init_creds_opt *outOptions )
{
    krb5_preauthtype    preauth[] = { KRB5_PADATA_ENC_TIMESTAMP };
    krb5_enctype        etypes[] = {ENCTYPE_DES_CBC_MD5,
ENCTYPE_DES_CBC_CRC};
    krb5_get_init_creds_opt_set_address_list(outOptions, NULL);
    krb5_get_init_creds_opt_set_etype_list( outOptions, etypes,
sizeof(etypes)/sizeof(krb5_enctype) );
    krb5_get_init_creds_opt_set_preauth_list(outOptions, preauth,
sizeof(preauth)/sizeof(krb5_preauthtype) );
}


I haven't looked at all the calls, but at least the set_preauth_list
just keeps the pointer, which in this case happens to point into the
stack of this function which promptly returns.

Chris
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post