From: Ezra Peisach Date: Tue, 25 Apr 1995 00:41:28 +0000 (+0000) Subject: Report return values to krb5_set_default_in_tkt_etypes and X-Git-Tag: krb5-1.0-beta5~286 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4eee9814d5c508cd43405aa61aef0c9651ce8a87;p=krb5.git Report return values to krb5_set_default_in_tkt_etypes and krb5_os_init_context instead of random stack values. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5463 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 086aeb303..b72c0087e 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,9 @@ +Mon Apr 24 17:09:36 1995 Ezra Peisach + + * init_ctx.c (krb5_init_context): If an error is returned from + krb5_set_default_in_tkt_etypes or krb5_os_init_context, + pass to caller instead of stack garbage. + Sat Apr 22 11:06:45 1995 Ezra Peisach (epeisach@kangaroo.mit.edu) * Makefile.in: t_walk_rtree needs libcrypto diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 88a21ea4a..3ab368b09 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -41,10 +41,10 @@ krb5_init_context(context) ctx->magic = KV5M_CONTEXT; /* Set the default encryption types, possible defined in krb5/conf */ - if (krb5_set_default_in_tkt_etypes(ctx, NULL)) + if (retval = krb5_set_default_in_tkt_etypes(ctx, NULL)) goto cleanup; - if (krb5_os_init_context(ctx)) + if (retval = krb5_os_init_context(ctx)) goto cleanup;