From eb6f8dccf93a90467ac32a298726844f7856c38e Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Mon, 1 May 1995 17:37:45 +0000 Subject: [PATCH] Check the return code from kdb5_init_context() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5670 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/edit/ChangeLog | 5 +++++ src/admin/edit/kdb5_edit.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/admin/edit/ChangeLog b/src/admin/edit/ChangeLog index f343b5e74..8cee93926 100644 --- a/src/admin/edit/ChangeLog +++ b/src/admin/edit/ChangeLog @@ -1,3 +1,8 @@ +Mon May 1 13:36:41 1995 Theodore Y. Ts'o (tytso@dcl) + + * kdb5_edit.c (kdb5_edit_Init): Check the return code from + kdb5_init_context(). + Fri Apr 28 18:04:26 1995 Mark Eichin * Makefile.in (LOCAL_LIBRARIES): put KRB4_LIB inside KLIB, and put diff --git a/src/admin/edit/kdb5_edit.c b/src/admin/edit/kdb5_edit.c index bc9b36870..52596c67b 100644 --- a/src/admin/edit/kdb5_edit.c +++ b/src/admin/edit/kdb5_edit.c @@ -130,7 +130,12 @@ char *kdb5_edit_Init(argc, argv) extern krb5_kt_ops krb5_ktf_writable_ops; char *request = NULL; - krb5_init_context(&edit_context); + retval = krb5_init_context(&edit_context); + if (retval) { + fprintf(stderr, "krb5_init_context failed with error #%ld\n", + retval); + exit(1); + } krb5_init_ets(edit_context); if (strrchr(argv[0], '/')) -- 2.26.2