diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2006-06-10 01:05:40 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2006-06-10 01:05:40 +0000 |
| commit | 5312c8fcb5f081adfb4dda1a909e61a090cb1692 (patch) | |
| tree | d9ccc5b4d078e4d332f612225112785cf92f6166 /src/lib | |
| parent | 505f26c501bff3b934d478a047266c920097e548 (diff) | |
| download | krb5-5312c8fcb5f081adfb4dda1a909e61a090cb1692.tar.gz krb5-5312c8fcb5f081adfb4dda1a909e61a090cb1692.tar.xz krb5-5312c8fcb5f081adfb4dda1a909e61a090cb1692.zip | |
Since it appears we don't actually set the conf_tgs_ktypes field except in this
initial allocation of zero elements, it can be deleted, along with
conf_tgs_ktypes_count and the associated code...
ticket: 2786
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18105 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb5/krb/init_ctx.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 9b90f7121..e1e1e755e 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -169,13 +169,6 @@ init_common (krb5_context *context, krb5_boolean secure, krb5_boolean kdc) if ((retval = krb5_set_default_tgs_ktypes(ctx, NULL))) goto cleanup; - ctx->conf_tgs_ktypes = calloc(ctx->tgs_ktype_count, sizeof(krb5_enctype)); - if (ctx->conf_tgs_ktypes == NULL && ctx->tgs_ktype_count != 0) - goto cleanup; - memcpy(ctx->conf_tgs_ktypes, ctx->tgs_ktypes, - sizeof(krb5_enctype) * ctx->tgs_ktype_count); - ctx->conf_tgs_ktypes_count = ctx->tgs_ktype_count; - if ((retval = krb5_os_init_context(ctx, kdc))) goto cleanup; @@ -269,11 +262,6 @@ krb5_free_context(krb5_context ctx) ctx->tgs_ktypes = 0; } - if (ctx->conf_tgs_ktypes) { - free(ctx->conf_tgs_ktypes); - ctx->conf_tgs_ktypes = 0; - } - if (ctx->default_realm) { free(ctx->default_realm); ctx->default_realm = 0; @@ -462,8 +450,7 @@ krb5_get_tgs_ktypes(krb5_context context, krb5_const_principal princ, krb5_encty /* This one is set *only* by reading the config file; it's not set by the application. */ return(get_profile_etype_list(context, ktypes, "default_tgs_enctypes", - context->conf_tgs_ktypes_count, - context->conf_tgs_ktypes)); + 0, NULL)); else return(get_profile_etype_list(context, ktypes, "default_tgs_enctypes", context->tgs_ktype_count, |
