summaryrefslogtreecommitdiffstats
path: root/src/kim/lib/mac
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-09-29 18:52:53 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-09-29 18:52:53 +0000
commitbf461a42b8f2d3fc3769e5166583799de7512a93 (patch)
tree5dd65eef016bcffa4d94889fe2ca07adbf15a1a8 /src/kim/lib/mac
parent1f48dbbdb2a6edc6718f6c7b349c34043dc45601 (diff)
UI should lazy init so that init and fini are only called if one
of the UI calls is called. The problem is that when you call krb5_get_init_creds_* you don't know if it will call the prompter or not. (It won't if the password is saved in the keychain or if pkinit succeeds.) ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20780 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kim/lib/mac')
-rw-r--r--src/kim/lib/mac/kim_os_ui_gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kim/lib/mac/kim_os_ui_gui.c b/src/kim/lib/mac/kim_os_ui_gui.c
index 832724f32..1ada9e213 100644
--- a/src/kim/lib/mac/kim_os_ui_gui.c
+++ b/src/kim/lib/mac/kim_os_ui_gui.c
@@ -58,6 +58,8 @@ kim_error kim_os_ui_gui_init (kim_ui_context *io_context)
k5_ipc_stream request = NULL;
k5_ipc_stream reply = NULL;
+ if (!err && !io_context) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+
if (!err) {
err = kim_library_get_application_name (&name);
}