From 4eee9814d5c508cd43405aa61aef0c9651ce8a87 Mon Sep 17 00:00:00 2001
From: Ezra Peisach <epeisach@mit.edu>
Date: Tue, 25 Apr 1995 00:41:28 +0000
Subject: [PATCH] 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
---
 src/lib/krb5/krb/ChangeLog  | 6 ++++++
 src/lib/krb5/krb/init_ctx.c | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

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  <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
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;
 	
 
-- 
2.26.2