Report return values to krb5_set_default_in_tkt_etypes and
authorEzra Peisach <epeisach@mit.edu>
Tue, 25 Apr 1995 00:41:28 +0000 (00:41 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 25 Apr 1995 00:41:28 +0000 (00:41 +0000)
krb5_os_init_context instead of random stack values.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5463 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/init_ctx.c

index 086aeb303801285150ce5ca605e59124c1a8b3de..b72c0087e15e336775173dd18d8ac3ee7ed3a4dd 100644 (file)
@@ -1,3 +1,9 @@
+Mon Apr 24 17:09:36 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * 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
index 88a21ea4a02bbe5896e1946d4d9719f57273f90c..3ab368b0925b5c2b748ec8195e08a4652bf5fd8a 100644 (file)
@@ -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;